Bugzilla – Bug 427
Allow <label for=x><input id=x></label>. (bug 5997)
Last modified: 2009-04-07 18:14:38 CEST
Index: source =================================================================== --- source (revision 2613) +++ source (revision 2614) @@ -26473,8 +26473,7 @@ <dt>Contexts in which this element may be used:</dt> <dd>Where <span>phrasing content</span> is expected.</dd> <dt>Content model:</dt> - <dd>If the element has a <code title="attr-label-for">for</code> attribute: <span>Phrasing content</span>, but with no descendant <span title="category-label">labelable form-associated elements</span> or <code>label</code> elements.</dd> - <dd>Otherwise: <span>Phrasing content</span>, but with at most one descendant <span title="category-label">labelable form-associated element</span>, and with no descendant <code>label</code> elements.</dd> + <dd><span>Phrasing content</span>, but with no descendant <span title="category-label">labelable form-associated elements</span> unless it is the element's <span>labeled control</span>, and no descendant <code>label</code> elements.</dd> <dt>Element-specific attributes:</dt> <dd><code title="attr-fae-form">form</code></dd> <dd><code title="attr-label-for">for</code></dd>
*** This bug has been marked as a duplicate of bug 380 ***