[html5] r2614 - [ac] (0) Allow <label for=x><input id=x></label>. (bug 5997)

whatwg at whatwg.org whatwg at whatwg.org
Mon Dec 29 15:24:22 PST 2008


Author: ianh
Date: 2008-12-29 15:24:21 -0800 (Mon, 29 Dec 2008)
New Revision: 2614

Modified:
   index
   source
Log:
[ac] (0) Allow <label for=x><input id=x></label>. (bug 5997)

Modified: index
===================================================================
--- index	2008-12-29 23:19:39 UTC (rev 2613)
+++ index	2008-12-29 23:24:21 UTC (rev 2614)
@@ -23784,8 +23784,7 @@
    <dt>Contexts in which this element may be used:</dt>
    <dd>Where <a href=#phrasing-content-0>phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
-   <dd>If the element has a <code title=attr-label-for><a href=#attr-label-for>for</a></code> attribute: <a href=#phrasing-content-0>Phrasing content</a>, but with no descendant <a href=#category-label title=category-label>labelable form-associated elements</a> or <code><a href=#the-label-element>label</a></code> elements.</dd>
-   <dd>Otherwise: <a href=#phrasing-content-0>Phrasing content</a>, but with at most one descendant <a href=#category-label title=category-label>labelable form-associated element</a>, and with no descendant <code><a href=#the-label-element>label</a></code> elements.</dd>
+   <dd><a href=#phrasing-content-0>Phrasing content</a>, but with no descendant <a href=#category-label title=category-label>labelable form-associated elements</a> unless it is the element's <a href=#labeled-control>labeled control</a>, and no descendant <code><a href=#the-label-element>label</a></code> elements.</dd>
    <dt>Element-specific attributes:</dt>
    <dd><code title=attr-fae-form><a href=#attr-fae-form>form</a></code></dd>
    <dd><code title=attr-label-for><a href=#attr-label-for>for</a></code></dd>

Modified: source
===================================================================
--- source	2008-12-29 23:19:39 UTC (rev 2613)
+++ source	2008-12-29 23:24:21 UTC (rev 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>




More information about the Commit-Watchers mailing list