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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: miklcct at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 11:01:30 2024 UTC