NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 315 - WF2: <label> element summary; make <label> and <fieldset> associate with the form element pointer.
WF2: <label> element summary; make <label> and <fieldset> associate with the ...
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-25 11:53 CEST by Henri Sivonen
Modified: 2009-11-23 17: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 Henri Sivonen 2008-09-25 11:53:44 CEST
Index: source
===================================================================
--- source	(revision 2145)
+++ source	(revision 2146)
@@ -24102,7 +24102,31 @@
   <p class="big-issue">...</p>
 
 
-  <h4>The <code>label</code> element</h4>
+  <h4>The <dfn><code>label</code></dfn> element</h4>
+
+  <dl class="element">
+   <dt>Categories</dt>
+   <dd><span>Phrasing content</span>.</dd>
+   <dd><span>Interactive content</span>.</dd>
+   <dt>Contexts in which this element may be used:</dt>
+   <dd>Where <span>phrasing content</span> is expected.</dd>
+   <dt>Content model:</dt>
+   <dd><span>Phrasing content</span>.</dd>
+   <dt>Element-specific attributes:</dt>
+   <dd><code title="attr-label-form">form</code></dd>
+   <dd><code title="attr-label-for">for</code></dd>
+   <dt>DOM interface:</dt>
+   <dd>
+<pre class="idl">interface <dfn>HTMLLabelElement</dfn> : <span>HTMLElement</span> {
+  readonly attribute HTMLFormElement <span title="dom-label-form">form</span>;
+           attribute DOMString <span title="dom-label-htmlFor">htmlFor</span>;
+  readonly attribute <span>HTMLElement</span> <span title="dom-label-control">control</span>;
+};</pre>
+   </dd> 
+  </dl>
+
+  <p class="big-issue">...</p>
+
 
   <h4>The <code>select</code> element</h4>
 
@@ -47589,9 +47613,9 @@
    <!-- the normal ones -->
    <dt>A start tag whose tag name is one of: "address", "article",
    "aside", "blockquote", "center", "datagrid", "details", "dialog",
-   "dir", "div", "dl", "fieldset", "figure", "footer", "h1", "h2",
-   "h3", "h4", "h5", "h6", "header", "menu", "nav", "ol", "p",
-   "section", "ul"</dt>
+   "dir", "div", "dl", "figure", "footer", "h1", "h2", "h3", "h4",
+   "h5", "h6", "header", "menu", "nav", "ol", "p", "section",
+   "ul"</dt>
    <dd>
 
     <!-- As of May 2008 this doesn't match any browser exactly, but is
@@ -47660,6 +47684,25 @@
 
    </dd>
 
+   <!-- as normal, but associated with the form element pointer -->
+   <dt>A start tag whose tag name is "fieldset"</dt>
+   <dd>
+
+    <p>If the <span>stack of open elements</span> <span title="has
+    an element in scope">has a <code>p</code> element in
+    scope</span>, then act as if an end tag with the tag name
+    "p" had been seen.</p>
+
+    <p><span>Insert an HTML element</span> for the token.</p>
+
+    <p>If the <span><code title="">form</code> element pointer</span>
+    is not null, then <span>associate</span><!--XXX xref! --> the
+    newly created <code>fieldset</code> element with the
+    <code>form</code> element pointed to by the <span><code
+    title="">form</code> element pointer</span>.</p>
+
+   </dd>
+
    <!-- as normal, but imply </li> when there's another <li> open in weird cases -->
    <dt>A start tag whose tag name is "li"</dt>
    <dd>
@@ -48353,6 +48396,22 @@
 
    </dd>
 
+   <dt>A start tag whose tag name is "input"</dt>
+   <dd>
+
+    <p><span>Reconstruct the active formatting elements</span>, if
+    any.</p>
+
+    <p><span>Insert an HTML element</span> for the token.</p>
+
+    <p>If the <span><code title="">form</code> element pointer</span>
+    is not null, then <span>associate</span><!--XXX xref! --> the
+    newly created <code>label</code> element with the
+    <code>form</code> element pointed to by the <span><code
+    title="">form</code> element pointer</span>.</p>
+
+   </dd>
+
    <dt id="isindex">A start tag whose tag name is "isindex"</dt>
    <dd>