Bugzilla – Bug 712
disallow td as a child of tr if tr is a child of thead
Last modified: 2010-11-09 09:17:25 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.
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.