php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50706 phpinfo() generates invalid XHTML code
Submitted: 2010-01-09 09:57 UTC Modified: 2010-01-09 18:36 UTC
From: miklcct at gmail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.3.1 OS: Ubuntu 9.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 2 = ?
Subscribe to this entry?

 
 [2010-01-09 09:57 UTC] 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();
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-09 18:36 UTC] jani@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC