NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 336 - Also make <output> have the same form-association magic, for consistency. (Also, simplify how this magic is specified.) (And note the previous checkin, which means that <object> is now also affected by this magic.)
Also make <output> have the same form-association magic, for consistency. (Al...
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-24 22:03 CET 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-11-24 22:03:20 CET
Index: source
===================================================================
--- source	(revision 2421)
+++ source	(revision 2422)
@@ -53602,6 +53602,16 @@
   node</span>. (This happens in particular during the parsing of
   tables with invalid content.)</p>
 
+  <p>If an element created by the <span>insert an HTML element</span>
+  algorithm is a <span>form-associated element</span>, and the
+  <span><code title="">form</code> element pointer</span> is not null,
+  and the newly created element doesn't have a <code
+  title="attr-fae-form">form</code> attribute, the user agent must
+  <span title="concept-form-association">associate</span> the newly
+  created element with the <code>form</code> element pointed to by the
+  <span><code title="">form</code> element pointer</span> before
+  inserting it wherever it is to be inserted.</p>
+
   <hr>
 
   <p>When the steps below require the UA to <dfn>insert a foreign
@@ -54606,9 +54616,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", "figure", "footer", "h1", "h2", "h3", "h4",
-   "h5", "h6", "header", "menu", "nav", "ol", "p", "section",
-   "ul"</dt>
+   "dir", "div", "dl", "fieldset", "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
@@ -54677,27 +54687,6 @@
 
    </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 and the newly created element doesn't have a <code
-    title="attr-fae-form">form</code> attribute, then <span
-    title="concept-form-association">associate</span> 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>
@@ -55237,35 +55226,13 @@
 
     <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 and the newly created element doesn't have a <code
-    title="attr-fae-form">form</code> attribute, then <span
-    title="concept-form-association">associate</span> the
-    <code>button</code> element with the <code>form</code> element
-    pointed to by the <span><code title="">form</code> element
-    pointer</span>.</p>
-
     <p>Insert a marker at the end of the <span>list of active
     formatting elements</span>.</p>
 
    </dd>
 
    <dt>A start tag token whose tag name is one of: "applet",
-   "marquee"</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>Insert a marker at the end of the <span>list of active
-    formatting elements</span>.</p>
-
-   </dd>
-
-   <!-- as for applet and marquee, but interacts with the form element pointer -->
-   <dt>A start tag token whose tag name is "object"</dt>
+   "marquee", "object"</dt>
    <dd>
 
     <p><span>Reconstruct the active formatting elements</span>, if
@@ -55273,14 +55240,6 @@
 
     <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 and the newly created element doesn't have a <code
-    title="attr-fae-form">form</code> attribute, then <span
-    title="concept-form-association">associate</span> the newly
-    created <code>object</code> element with the <code>form</code>
-    element pointed to by the <span><code title="">form</code> element
-    pointer</span>.</p>
-
     <p>Insert a marker at the end of the <span>list of active
     formatting elements</span>.</p>
 
@@ -55342,7 +55301,7 @@
    </dd>
 
    <dt>A start tag whose tag name is one of: "area", "basefont",
-   "bgsound", "br", "embed", "img", "spacer", "wbr"</dt>
+   "bgsound", "br", "embed", "img", "input", "spacer", "wbr"</dt>
    <dd>
 
     <p><span>Reconstruct the active formatting elements</span>, if
@@ -55394,49 +55353,6 @@
     <image> element. -->
    </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. Immediately
-    pop the <span>current node</span> off the <span>stack of open
-    elements</span>.</p>
-
-    <p><span title="acknowledge self-closing flag">Acknowledge the
-    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 and the newly created element doesn't have a <code
-    title="attr-fae-form">form</code> attribute, then <span
-    title="concept-form-association">associate</span> 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 "label"</dt>
-   <dd>
-
-    <!-- XXX should this close open <label> elements? -->
-
-    <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 and the newly created element doesn't have a <code
-    title="attr-fae-form">form</code> attribute, then <span
-    title="concept-form-association">associate</span> 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>
 
@@ -55521,14 +55437,6 @@
      <li><p><span>Insert an HTML element</span> for the
      token.</p></li>
 
-     <li><p>If the <span><code title="">form</code> element
-     pointer</span> is not null and the newly created element doesn't
-     have a <code title="attr-fae-form">form</code> attribute, then
-     <span title="concept-form-association">associate</span> the newly
-     created <code>textarea</code> element with the <code>form</code>
-     element pointed to by the <span><code title="">form</code>
-     element pointer</span>.</p></li>
-
      <li><p>If the next token is a U+000A LINE FEED (LF) character
      token, then ignore that token and move on to the next
      one. (Newlines at the start of <code>textarea</code> elements are
@@ -55565,14 +55473,6 @@
 
     <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 and the newly created element doesn't have a <code
-    title="attr-fae-form">form</code> attribute, then <span
-    title="concept-form-association">associate</span> the
-    <code>select</code> element with the <code>form</code> element
-    pointed to by the <span><code title="">form</code> element
-    pointer</span>.</p>
-
     <p>If the <span>insertion mode</span> is one of <span
     title="insertion mode: in table">in table</span>", "<span
     title="insertion mode: in caption">in caption</span>", "<span
@@ -56047,9 +55947,10 @@
 
     <p>If the token does not have an attribute with the name "type",
     or if it does, but that attribute's value is not an <span>ASCII
-    case-insensitive</span> match for the string "hidden", or, if the
-    <span>current table</span> is <span>tainted</span>, then: act as
-    described in the "anything else" entry below.</p>
+    case-insensitive</span> match for the string "<code
+    title="">hidden</code>", or, if the <span>current table</span> is
+    <span>tainted</span>, then: act as described in the "anything
+    else" entry below.</p>
 
     <p>Otherwise:</p>
 
@@ -56057,12 +55958,6 @@
 
     <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 <code>input</code> element with the
-    <code>form</code> element pointed to by the <span><code
-    title="">form</code> element pointer</span>.</p>
-
     <p>Pop that <code>input</code> element off the <span>stack of
     open elements</span>.</p>