This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16006 - Is <table><tfoot><tr><td>Inner</td></tr></tfoot></table> valid HTML5 ?
Summary: Is <table><tfoot><tr><td>Inner</td></tr></tfoot></table> valid HTML5 ?
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-16 20:08 UTC by contributor
Modified: 2012-07-18 18:38 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2012-02-16 20:08:14 UTC
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
Comment 1 Gérard Talbot 2012-02-16 20:11:39 UTC
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.
Comment 2 Gérard Talbot 2012-02-16 20:15:12 UTC
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
Comment 3 Simon Pieters 2012-02-17 05:28:50 UTC
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.
Comment 4 Gérard Talbot 2012-02-17 18:09:14 UTC
Okay. Good enough.

Resolving as WORKSFORME then