#50706 [Opn->Bgs]: phpinfo() generates invalid XHTML code

From: Date: Sat, 09 Jan 2010 18:36:30 +0000
Subject: #50706 [Opn->Bgs]: phpinfo() generates invalid XHTML code
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146488@lists.php.net to get a copy of this message
ID: 50706 Updated by: jani@php.net Reported By: miklcct at gmail dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Ubuntu 9.10 PHP Version: 5.3.1 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See bug #50324 Previous Comments: ------------------------------------------------------------------------ [2010-01-09 09:57:42] miklcct at gmail dot com 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 this bug report at http://bugs.php.net/?id=50706&edit=1

« previous php.bugs (#146488) next »