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

tidy fails on comment in <tbody>

From: John Cumming <jrc@ndc.com>
Date: Fri, 30 Jul 1999 13:11:40 -0700
Message-Id: <199907302011.NAA06999@kato.ndc-new.com>
To: html-tidy@w3.org
This turned up on Solaris 2, with tidy built using gcc.

The parser has trouble with a comment between a "<tbody>"
and a "<tr>", and likewise with a comment between "</tr>"
and "<tr>" within a TBODY. It causes a Segmentation Fault
when tidy_out() tries to print a DISCARDING_UNEXPECTED
message with a string whose address is 0.

  Tidy (vers 26th July 1999) Parsing "../fault2.html"
  line 10 column 1 - Warning: discarding unexpected 


-------- Example HTML document --------
<html>
<head>
<title>Comment in `tbody' before a `tr' causes Segmentation Fault</title>
</head>

<body>
<table summary="example">
  <tbody>
  <!-- comment -->
  <tr>
    <td>xxx</td>
  </tr>
  </tbody>
</table>
</body>
</html>

---------------------------------------

Thanks for the useful tool.

John
Received on Friday, 30 July 1999 16:11:45 GMT

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