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 23001 - Rules for omitting </thead> etc don't match the parser
Summary: Rules for omitting </thead> etc don't match the parser
Status: RESOLVED DUPLICATE of bug 22999
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: 2013-08-18 20:37 UTC by contributor
Modified: 2013-10-30 23:33 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2013-08-18 20:37:44 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html
Multipage: http://www.whatwg.org/C#optional-tags
Complete: http://www.whatwg.org/c#optional-tags
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Rules for omitting </thead> etc don't match the parser

Posted from: 90.230.218.37
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.49 Safari/537.36 OPR/16.0.1196.45 (Edition Next)
Comment 1 Simon Pieters 2013-08-18 20:39:32 UTC
[[
A thead element's end tag may be omitted if the thead element is immediately followed by a tbody or tfoot element.

A tbody element's start tag may be omitted if the first thing inside the tbody element is a tr element, and if the element is not immediately preceded by a tbody, thead, or tfoot element whose end tag has been omitted. (It can't be omitted if the element is empty.)

A tbody element's end tag may be omitted if the tbody element is immediately followed by a tbody or tfoot element, or if there is no more content in the parent element.

A tfoot element's end tag may be omitted if the tfoot element is immediately followed by a tbody element, or if there is no more content in the parent element.
]]

Should probably list all of thead, tbody and tfoot
Comment 2 Ian 'Hixie' Hickson 2013-08-20 17:54:09 UTC
Yeah, this is similar to the other bug. The syntax section was trying to only mention conforming elements.

Maybe we should leave it like that and instead change the other bug to just remove <dir>?
Comment 3 Simon Pieters 2013-08-20 18:24:55 UTC
I prefer including the obsolete elements since it avoids bugs in serializers (e.g. not mentioning <bgsound> as first child of <body> means the serializer would omit <body> and the <bgsound> would be hoisted to head when parsing)
Comment 4 Ian 'Hixie' Hickson 2013-08-22 20:24:55 UTC
See also bug 22999 and bug 23000.
Comment 5 Ian 'Hixie' Hickson 2013-10-30 23:33:20 UTC

*** This bug has been marked as a duplicate of bug 22999 ***