HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2146[Conformance Checkers] [Tools] WF2: <label> element summary; make <label> and <fieldset> associate with the form element pointer.2008-09-03 20:43
@@ -24095,21 +24095,45 @@ function AddCloud(data, x, y) { ... }</pre>
   readonly attribute DOMString <span title="dom-button-validationMessage">validationMessage</span>;
   boolean <span title="dom-button-checkValidatity">checkValidity</span>();
   void <span title="dom-button-setCustomValidity">setCustomValidity</span>(in DOMString error);
 };</pre>
    </dd> 
   </dl>
 
   <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>
 
   <h4>The <code>datalist</code> element</h4>
 
   <h4>The <code>optgroup</code> element</h4>
 
   <h4>The <code>option</code> element</h4>
 
   <h4>Constructors</h4>
@@ -47582,23 +47606,23 @@ interface <dfn>MessageChannel</dfn> {
     <p class="note">The fake end tag token here can only be
     ignored in the <span>fragment case</span>.</p>
 
    </dd>
 
    <!-- start tags for non-phrasing flow content elements -->
 
    <!-- 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
     as close to what IE does as I can get without doing the non-tree
     DOM nonsense, and thus should actually afford better compatibility
     when implemented by the other browsers. -->
 
     <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
@@ -47653,20 +47677,39 @@ interface <dfn>MessageChannel</dfn> {
     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, and set the
     <code title="form">form</code> element pointer to point to the
     element created.</p>
 
    </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>
 
     <p>Run the following algorithm:</p>
 
     <ol>
 
      <li><p>Initialise <var title="">node</var> to be the <span>current
      node</span> (the bottommost node of the stack).</p></li>
@@ -48346,20 +48389,36 @@ interface <dfn>MessageChannel</dfn> {
     token's <i>self-closing flag</i></span>, if it is set.</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>input</code> element with the
     <code>form</code> element pointed to by the <span><code
     title="">form</code> element pointer</span>.</p>
 
    </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>
 
     <p><span>Parse error</span>.</p>
 
     <p>If the <span><code title="">form</code> element
     pointer</span> is not null, then ignore the token.</p>
 
     <p>Otherwise:</p>
 

|