php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6379 phpinfo and credits html errors
Submitted: 2000-08-27 14:13 UTC Modified: 2010-12-20 10:22 UTC
From: Howard dot Cohodas at dkt dot com Assigned: jani (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 4.0 Latest CVS (27/08/2000) OS: NT4 SP6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Howard dot Cohodas at dkt dot com
New email:
PHP Version: OS:

 

 [2000-08-27 14:13 UTC] Howard dot Cohodas at dkt dot com
Configuration...
php-4.0.2-dev-Win32-24-8-2000.zip
WinNT4 SP6a
HTTP Server: WebSitePro/2.5.4
mySQL: 3.23.22-beta
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Script (Note first line is blank)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>php-4.0.2-dev-Win32-24-8-2000.zip</title>
  </head>
  <body>
    <?php
      show_source(__FILE__);
      phpinfo();
    ?>
  </body>
</html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

W3C Tidy analyser output for phpinfo

Tidy (vers 30th April 2000) Parsing "input.html"
line 24 column 16 - Warning: missing </center> before <style>
line 24 column 16 - Warning: <style> isn't allowed in <center> elements
line 32 column 1 - Warning: <table> lacks "summary" attribute
line 34 column 31 - Warning: <img> lacks "alt" attribute
line 37 column 1 - Warning: <table> lacks "summary" attribute
line 46 column 1 - Warning: <table> lacks "summary" attribute
line 48 column 32 - Warning: <img> lacks "alt" attribute
line 53 column 69 - Warning: missing </a> before <h1>
line 53 column 93 - Warning: discarding unexpected </a>
line 58 column 1 - Warning: <table> lacks "summary" attribute
line 61 column 111 - Warning: unescaped & which should be written as &amp;
line 61 column 136 - Warning: unescaped & which should be written as &amp;
line 115 column 27 - Warning: missing </a> before <h2>
line 116 column 1 - Warning: <table> lacks "summary" attribute
line 120 column 1 - Warning: <table> lacks "summary" attribute
line 120 column 1 - Warning: missing <tr>
line 120 column 1 - Warning: discarding unexpected <table>
line 121 column 1 - Warning: missing <td>
line 130 column 1 - Warning: discarding unexpected </table>
line 131 column 22 - Warning: missing </a> before <h2>
line 132 column 1 - Warning: <table> lacks "summary" attribute
line 137 column 23 - Warning: missing </a> before <h2>
line 138 column 1 - Warning: <table> lacks "summary" attribute
line 142 column 23 - Warning: missing </a> before <h2>
line 143 column 1 - Warning: <table> lacks "summary" attribute
line 149 column 1 - Warning: <table> lacks "summary" attribute
line 161 column 26 - Warning: missing </a> before <h2>
line 162 column 1 - Warning: <table> lacks "summary" attribute
line 165 column 1 - Warning: <table> lacks "summary" attribute
line 184 column 22 - Warning: missing </a> before <h2>
line 185 column 1 - Warning: <table> lacks "summary" attribute
line 188 column 24 - Warning: missing </a> before <h2>
line 189 column 1 - Warning: <table> lacks "summary" attribute
line 195 column 1 - Warning: <table> lacks "summary" attribute
line 206 column 24 - Warning: missing </a> before <h2>
line 207 column 1 - Warning: <table> lacks "summary" attribute
line 240 column 1 - Warning: <table> lacks "summary" attribute
line 245 column 1 - Warning: <table> lacks "summary" attribute
line 264 column 1 - Warning: <table> lacks "summary" attribute
line 326 column 1 - Warning: <table> lacks "summary" attribute

"input.html" appears to be HTML 4.01 Transitional
40 warnings/errors were found!

The table summary attribute should be used to describe
the table structure. It is very helpful for people using
non-visual browsers. The scope and headers attributes for
table cells are useful for specifying which headers apply
to each table cell, enabling non-visual browsers to provide
a meaningful context for each cell.

The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see "http://www.w3.org/WAI/GL". You may also want to try
"http://www.cast.org/bobby/" which is a free Web-based
service for checking URLs for accessibility.

You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier maintain
compared with using <FONT> elements.

HTML & CSS specifications are available from http://www.w3.org/
To learn more about Tidy see http://www.w3.org/People/Raggett/tidy/
Please send bug reports to Dave Raggett care of <html-tidy@w3.org>
Lobby your company to join W3C, see http://www.w3.org/Consortium
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tidy output for CREDITS


Tidy (vers 30th April 2000) Parsing "input.html"
line 10 column 1 - Warning: inserting missing 'title' element
line 11 column 1 - Warning: <table> lacks "summary" attribute
line 15 column 1 - Warning: <table> lacks "summary" attribute
line 16 column 59 - Warning: unescaped & which should be written as &amp;
line 19 column 1 - Warning: <table> lacks "summary" attribute
line 28 column 1 - Warning: <table> lacks "summary" attribute
line 39 column 1 - Warning: <table> lacks "summary" attribute
line 89 column 1 - Warning: <table> lacks "summary" attribute

"input.html" appears to be HTML 3.2
8 warnings/errors were found!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-27 14:23 UTC] rasmus@php.net
Half of those warnings are bogus, and why in the world would you care about the strict validity of the HTML output from phpinfo() anyway?  I certainly don't - CLosing.
 [2010-12-20 10:22 UTC] jani@php.net
-Package: Tidy +Package: PHP options/info functions -Assigned To: +Assigned To: jani
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 22:01:34 2019 UTC