#50706 [NEW]: phpinfo() generates invalid XHTML code
| From: | miklcct at gmail dot com | Date: | Sat, 09 Jan 2010 09:57:42 +0000 |
| Subject: | #50706 [NEW]: phpinfo() generates invalid XHTML code | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-146478@lists.php.net to get a copy of this message | ||
From: miklcct at gmail dot com
Operating system: Ubuntu 9.10
PHP version: 5.3.1
PHP Bug Type: Unknown/Other Function
Bug description: phpinfo() generates invalid XHTML code
Description:
------------
Simply running phpinfo() and put the output into W3C validator and it
says:
Validation Output: 1 Error
1. Error Line 2, Column 1: Missing xmlns attribute for element html.
The value should be: http://www.w3.org/1999/xhtml
<html><head>
â
Many Document Types based on XML need a mandatory xmlns="" on the
root element. For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
Reproduce code:
---------------
<?php
phpinfo();
?>
--
Edit bug report at http://bugs.php.net/?id=50706&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50706&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50706&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50706&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50706&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50706&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50706&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50706&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50706&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50706&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50706&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50706&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50706&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50706&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50706&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50706&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50706&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50706&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50706&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50706&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50706&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50706&r=mysqlcfg