better explanation for this error message #64

Current error message:

# Line 481, column 7: document type does not allow element "tfoot" here
<tfoot>
The element named above was found in a context where it is not allowed. This 
could mean that you have incorrectly nested elements -- such as a "style" 
element in the "body" section instead of inside "head" -- or two elements 
that overlap (which is not allowed).

=======

Actually, the problem was that the HTML had the elements in this order:

<table>
  <caption>...</caption>
  <tr>...</tr>
  <tr>...</tr>
  <tfoot>...</tfoot>
</table>

When we moved the tfoot element after caption and before any tr's, things were 
OK again.

So, the error should mention the correct order that thead, tfoot, & tbody 
should be in.

Thanks for a great service.

Scott

-- 
R. Scott Granneman
scott@granneman.com ~ www.granneman.com
Join GranneNotes! Information at www.granneman.com
Read my blog at http://radio.weblogs.com/0100530

"I do not believe in the creed professed by the Jewish church, by the Roman 
church, by the Greek church, by the Turkish church, by the Protestant church, 
nor by any church that I know of. My own mind is my own church."
      ---Thomas Paine

Received on Monday, 10 May 2004 13:26:44 UTC