W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999

Re: 26-Jul-99 bug: Bad <font> in <tr> causes crash

From: Terry Teague <teague@mailandnews.com>
Date: Sat, 31 Jul 1999 20:03:46 -0700
Message-Id: <l03130303b3c968e1b3d5@[17.219.105.239]>
To: "HTML Tidy Mailing List" <html-tidy@w3.org>
At 11:45 AM -0600 7/27/99, Randy Waki wrote:
>Thanks for the new release!  Incidentally, the bugs I recently reported in
>the 7-Jul-99 Tidy are reproducible in the new 29-Jul-99 version.
>
>Here's a new bug report:
>
>The HTML document below has a table row containing a bad <font> tag with no
>content, no ending </font> tag, and no enclosing table cell.  26-Jul-99 Tidy
>crashes (on Windows NT, at least) trying to access an illegal address.  Andy
>Quick's 7-Jul-99 Java version also crashes (with a NullPointerException),
>suggesting that the problem in the C version is with the value of prev in
>parser.c, TrimInitialSpace(), line 194:
>
>    if (prev->type == TextNode)
>
>-------- Example HTML document --------
><html>
>  <head>
>    <title>t</title>
>  </head>
>  <body>
>    <table summary="s">
>      <tr>
>        <font>
>      </tr>
>    </table>
>  </body>
></html>
>---------------------------------------

Just an FYI, it is not crashing on the Mac OS version.

Here is the error output I am getting from the test case above (using the
26th July 99 sources ) :

Tidy (vers 26th July 1999) Parsing "bad <font> in <tr>.html"
line 8 column 9 - Warning: <font> isn't allowed in <tr> elements
line 9 column 7 - Warning: discarding unexpected </tr>
line 10 column 5 - Warning: discarding unexpected </table>
line 11 column 3 - Warning: missing </font> before </body>
line 11 column 3 - Warning: trimming empty <font>
line 11 column 3 - Warning: trimming empty <tr>
line 11 column 3 - Warning: missing </table> before </body>
line 11 column 3 - Warning: trimming empty <table>

"bad <font> in <tr>.html" appears to be HTML 4.0 Transitional
8 warnings/errors were found!

Here is the cleaned output :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>t</title>
</head>
<body>
</body>
</html>


Regards, Terry
Received on Saturday, 31 July 1999 23:24:30 GMT

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