NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 712 - disallow td as a child of tr if tr is a child of thead
disallow td as a child of tr if tr is a child of thead
Status: RESOLVED NOTREPRODUCIBLE
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-31 08:01 CET by Michael[tm] Smith
Modified: 2010-11-09 09:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2010-01-31 08:01:37 CET
The spec says that when the parent node of a tr element is a thead element, it's only allowed to have zero or more th elements, and not allowed to have any td elements. But the schema currently does not enforce that constraint.
Comment 1 Michael[tm] Smith 2010-11-09 09:17:25 CET
see http://html5.org/tools/web-apps-tracker?from=5433&to=5434


    elements, but only if there are no <code>tbody</code> elements that
    are children of the <code>table</code> element.</dd>
    <dt>Content model:</dt>
-   <dd>When the parent node is a <code>thead</code> element: Zero or more <code>th</code> elements</dd>
-   <dd>Otherwise: Zero or more <code>td</code> or <code>th</code> elements</dd>
+   <dd>Zero or more <code>td</code> or <code>th</code> elements</dd>
    <dt>Content attributes:</dt>
    <dd><span>Global attributes</span></dd>
    <dt>DOM interface:</dt>

…so the spec does allow <td> as a child of <thead> now, which means we can close this bug.