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

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 UTC