W3C home > Mailing lists > Public > www-validator@w3.org > November 2005

Re: [VE][64] (TFOOT attribute) Error Message Feedback

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 09 Nov 2005 14:30:48 +1100
Message-ID: <43716D68.7020502@lachy.id.au>
To: Adam Cooper <adam.c@ncprint.com.au>
CC: www-validator@w3.org

Adam Cooper wrote:
> 
> Validating Error [64]: "document type does not allow element X here"
> 
> Recently, the validator has been telling me that the TFOOT element is 
> not allowed.

The tfoot element must occur between the thead (if present) and all 
tbody elements.

This is wrong:
   <table>
     <thead>...</thead>
     <tbody><!-- one or more tbody elements --></tbody>
     <tfoot><!-- this must occur before tbody --></tfoot>
   </table>

This is correct:
   <table>
     <thead>...</thead>
     <tfoot>...</tfoot>
     <tbody><!-- one or more tbody elements --></tbody>
   </table>

This is also correct, though it doesn't have a thead element:
   <table>
     <tfoot>...</tfoot>
     <tbody><!-- one or more tbody elements --></tbody>
   </table>

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Wednesday, 9 November 2005 03:31:07 GMT

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