There appears to be a bug in parsing that is causing
the incorrect termination of a table row and then
results in several other errors in a cascade effect.
Using the attached sample HTML file, Tidy.exe
terminates the first table row after the first cell
when an un-allowed tag is encountered, however the
warning/eror information states that the tag was discarded:
line 11 column 1 - Warning: discarding unexpected </center>
The termination then results in the following
line 12 column 17 - Warning: missing <tr>
line 16 column 9 - Warning: discarding unexpected </tr>
line 12 column 17 - Warning: <tr> isn't allowed in <tr>
line 23 column 9 - Warning: discarding unexpected </tr>
Looking at the output, not only was the first row
terminated but the all remaining cells of the first row
and additional rows were placed into a single row.
Using Tidy API, I was able to see the exact same thing
when walking the document tree immediately after
parsing/load so it is not a cleanup issue but rather
Log in to post a comment.