W3C home > Mailing lists > Public > www-validator@w3.org > May 2004

better explanation for this error message #64

From: Scott Granneman <scott@granneman.com>
Date: Mon, 10 May 2004 12:25:00 -0500
To: www-validator@w3.org
Cc: "Jans W. Carton" <Jans@WebSanity.com>
Message-Id: <200405101225.00704.scott@granneman.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:13 GMT