NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 427 - Allow <label for=x><input id=x></label>. (bug 5997)
Allow <label for=x><input id=x></label>. (bug 5997)
Status: RESOLVED DUPLICATE of bug 380
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-04 16:59 CET by Henri Sivonen
Modified: 2009-04-07 18:14 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-01-04 16:59:55 CET
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>
Comment 1 Michael[tm] Smith 2009-04-07 18:14:38 CEST

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