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: Wed, 5 Jan 2000 16:17:06 +0100 (CET)
To: html-tidy@w3.org
Message-ID: <Pine.LNX.3.96.1000105155627.22003M-100000@pc555zh74.adtools.fr.ibm.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>
  </head>
  <body>
    <table width="100%" border="9" summary="test">
      <col width="40%" align="center">
      <col  width="60%" align="left">
      <tbody>
        <tr>
          <td width="10%"></td>
          <td>klmkld dml </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 Wednesday, 5 January 2000 10:17:45 GMT

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