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

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>
---------------------------------------

Thanks,
Randy

Received on Tuesday, 27 July 1999 13:46:40 UTC