W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

HTML 4 and TD attributes

From: Jany Quintard <quintard.j@cgi.fr>
Date: Fri, 24 Mar 2000 11:45:24 -0600
To: html-tidy@w3.org
Message-ID: <OF93398412.5A7C02A0-ON8625685D.00547EAB@rfdinc.com>

I may be wrong, but I believe that TD does not have a width attribute in
HTML version 4 (this being described in the col element).
Tidy does not complain when parsing the following file :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
  <head>
    <title>Test</title>  <body>
    <table width="100%" border="9" summary="test">
      <col width="40%" align="center">
      <col  width="60%" align="left">
      <tbody>
        <tr>
          <td width="10%"></td>        </tr>
      </tbody>
    </table>
  </body>
</html>

The output message is :
Tidy (vers 30th November 1999) Parsing "table.html"
"table.html" appears to be HTML 4.01
no warnings or errors were found

BTW, the HTML output is *correct* (the width has been removed)
My question is : should not tidy complain in order to allow the user to
clean the source.
Maybe is this a "psycho-rigid-Unix-user-question" :-)

And sad enough, 50% of the HTML browsers I wanted to use with my pretty
cleaned and correct HTML were not able to display it correctly  :-(

Jany.

tidy is great anyway. Thanks Dave.
------------------------------------------------------
Jany Quintard             | Et les enfants de choeur
IBM Paris Laboratory      | Branlant du chef, opinent
Tel : 33 (0)2 51 16 40 36 |   G. Brassens (La religieuse)
Received on Friday, 24 March 2000 12:46:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT