Re: Standard compliance is needed

From: Date: Wed, 12 Jun 2002 11:19:07 +0000
Subject: Re: Standard compliance is needed
References: 1 2  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-10795@lists.php.net to get a copy of this message
Gabor Hojtsy wrote:
It's a bit weird that w3c validator thinks, that there is no border or width or height attribute for <img>. It's there since the first version of HTML containing images... The php.net site is a mixture of some XHTML parts, some very weird SGML markup (all the manual pages generated by DSSSL), and some browser specific info (like topmargin, leftmargin, marginwidth, etc...).
Without top/leftmargin, etc, some browsers have problems, so these errors are not a big deal. I usually try to minimize errors with html validator and www.php.net seems to have obvious mistakes. There may be some problems in the validator, since it seems it is updated rather recently. -- Yasuo Ohgaki
Goba
I validated http://www.php.net/ with w3c html validation service, since I realized there are a _LOT_ of PHP applications, including very popular PHP applications, that do not produce stanard compliant HTML... Unfotunately, www.php.net is one of them. Pages should be fixed. Here is the validation result for http://www.php.net/ --------------------------------------------------- Below are the results of attempting to parse this document with an SGML parser.
    * Line 6, column 47:
<link rel="shortcut icon" href="/favicon.ico" />
                                                 ^
      Error: element "LINK" not allowed here; check which elements this
element may be contained within
    * Line 7, column 6:
</head>
        ^
      Error: end tag for element "HEAD" which is not open; try removing
the end tag or check for improper nesting of elements
    * Line 8, column 16:
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
                  ^
      Error: there is no attribute "TOPMARGIN" for this element (in
this HTML version)
    * Line 8, column 31:
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
                                 ^
      Error: there is no attribute "LEFTMARGIN" for this element (in
this HTML version)
    * Line 8, column 48:
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
                                                  ^
      Error: there is no attribute "MARGINHEIGHT" for this element (in
this HTML version)
    * Line 8, column 64:
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
                                                                  ^
      Error: there is no attribute "MARGINWIDTH" for this element (in
this HTML version)
    * Line 10, column 16:
vlink="#000099">
                  ^
      Error: element "BODY" not allowed here; check which elements this
element may be contained within
    * Line 12, column 35:
... spacing="0" cellpadding="0" height="48" width="100%">
                                         ^
      Error: there is no attribute "HEIGHT" for this element (in this
HTML version)
    * Line 25, column 57:
      <form method="post" action="/search.php" class="thin">
                                                           ^
      Error: element "FORM" not allowed here; possible cause is an
inline element containing a block-level element
    * Line 38, column 35:
... ifs/small_submit_white.gif" border="0" width="11" height="11 ...
                                         ^
      Error: there is no attribute "BORDER" for this element (in this
HTML version)
    * Line 38, column 50:
... c="/gifs/small_submit_white.gif" border="0" width="11" height="11" ALT ...
                                                        ^
      Error: there is no attribute "WIDTH" for this element (in this
HTML version)
    * Line 38, column 50:
... ll_submit_white.gif" border="0" width="11" height="11" ALT="search" a ...
                                                        ^
      Error: there is no attribute "HEIGHT" for this element (in this
HTML version)
    * Line 99, column 35:
... <td bgcolor="#cccccc" background="/gifs/checkerboard.gif" ...
                                     ^
      Error: there is no attribute "BACKGROUND" for this element (in
this HTML version)
    * Line 129, column 27:
<hr noshade size="1" color="#000000" />
                             ^
      Error: there is no attribute "COLOR" for this element (in this
HTML version)
    * Line 301, column 32:
     <script language="javascript">
                                  ^
      Error: required attribute "TYPE" not specified
    * Line 410, column 35:
  ...    Last updated: <url-minder-ignore>Tue Jun 11 20:53:50 2002 ...
                                     ^
      Error: element "URL-MINDER-IGNORE" not defined in this HTML version
Sorry, this document does not validate as HTML 4.0 Transitional. If you use CSS in your document, you should also check it for validity using the W3C CSS Validation Service.


« previous php.mirrors (#10795) next »