This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html Multipage: http://www.whatwg.org/C#the-table-element Complete: http://www.whatwg.org/c#the-table-element Comment: Is the following valid then ? <table><tfoot><tr><td>Inner</td></tr></tfoot></table> Posted from: 173.177.34.29 User agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1
In HTML 4, <table><tfoot><tr><td>Inner</td></tr></tfoot></table> is invalid. HTML5 spec content model for table element says " Content model: In this order: optionally a caption element, followed by zero or more colgroup elements, followed optionally by a thead element, followed optionally by a tfoot element, followed by either zero or more tbody elements or one or more tr elements, followed optionally by a tfoot element (but there can only be one tfoot element child in total). " 4.9.1 The table element http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#the-table-element So, it seems to me that the chunk of HTML code above is INVALID HTML5.
I need to know for sure that the chunk of HTML code provided is INVALID HTML5. Once I know that, then I will be able to file a bug report on the HTML validator and on http://validator.nu/ and http://html5.validator.nu/ . regards, Gérard
It is valid. The content model says "either zero or more tbody elements or one or more tr elements". That table has zero tbody elements.
Okay. Good enough. Resolving as WORKSFORME then