[html5] r8188 - [cgiowt] (3) Make parser-driven form element pointer associations not happen whe [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Sep 16 10:35:31 PDT 2013


Author: ianh
Date: 2013-09-16 10:35:27 -0700 (Mon, 16 Sep 2013)
New Revision: 8188

Modified:
   complete.html
   index
   source
Log:
[cgiowt] (3) Make parser-driven form element pointer associations not happen when the element is inserted into a different home subtree than the form element, to avoid cross-subtree associations (which otherwise wouldn't be possible).
Affected topics: HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2013-09-14 04:02:52 UTC (rev 8187)
+++ complete.html	2013-09-16 17:35:27 UTC (rev 8188)
@@ -256,7 +256,7 @@
 
   <header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 14 September 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 16 September 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -89303,9 +89303,11 @@
    invoke its <a href=#concept-form-reset-control title=concept-form-reset-control>reset algorithm</a>. (This initializes the
    element's <a href=#concept-fe-value title=concept-fe-value>value</a> and <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> based on the element's attributes.)</li>
 
+<!--CLEANUP-->
    <li><p>If the element is a <a href=#form-associated-element>form-associated element</a>, and the <a href=#form-element-pointer><code title="">form</code> element pointer</a> is not null, and there is no <code><a href=#the-template-element>template</a></code>
    element on the <a href=#stack-of-open-elements>stack of open elements</a>, and the newly created element is either not
-   <a href=#category-form-attr title=category-form-attr>reassociateable</a> or doesn't have a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute, <a href=#concept-form-association title=concept-form-association>associate</a> the newly created element with the
+   <a href=#category-form-attr title=category-form-attr>reassociateable</a> or doesn't have a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute, and the <var title="">intended parent</var> is in
+   the same <a href=#home-subtree>home subtree</a> as the element pointed to by the <a href=#form-element-pointer><code title="">form</code> element pointer</a>, <a href=#concept-form-association title=concept-form-association>associate</a> the newly created element with the
    <code><a href=#the-form-element>form</a></code> element pointed to by the <a href=#form-element-pointer><code title="">form</code> element
    pointer</a>, and suppress the running of the <a href=#reset-the-form-owner>reset the form owner</a> algorithm when
    the parser subsequently attempts to insert the element.</li>

Modified: index
===================================================================
--- index	2013-09-14 04:02:52 UTC (rev 8187)
+++ index	2013-09-16 17:35:27 UTC (rev 8188)
@@ -256,7 +256,7 @@
 
   <header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 14 September 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 16 September 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -89303,9 +89303,11 @@
    invoke its <a href=#concept-form-reset-control title=concept-form-reset-control>reset algorithm</a>. (This initializes the
    element's <a href=#concept-fe-value title=concept-fe-value>value</a> and <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> based on the element's attributes.)</li>
 
+<!--CLEANUP-->
    <li><p>If the element is a <a href=#form-associated-element>form-associated element</a>, and the <a href=#form-element-pointer><code title="">form</code> element pointer</a> is not null, and there is no <code><a href=#the-template-element>template</a></code>
    element on the <a href=#stack-of-open-elements>stack of open elements</a>, and the newly created element is either not
-   <a href=#category-form-attr title=category-form-attr>reassociateable</a> or doesn't have a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute, <a href=#concept-form-association title=concept-form-association>associate</a> the newly created element with the
+   <a href=#category-form-attr title=category-form-attr>reassociateable</a> or doesn't have a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute, and the <var title="">intended parent</var> is in
+   the same <a href=#home-subtree>home subtree</a> as the element pointed to by the <a href=#form-element-pointer><code title="">form</code> element pointer</a>, <a href=#concept-form-association title=concept-form-association>associate</a> the newly created element with the
    <code><a href=#the-form-element>form</a></code> element pointed to by the <a href=#form-element-pointer><code title="">form</code> element
    pointer</a>, and suppress the running of the <a href=#reset-the-form-owner>reset the form owner</a> algorithm when
    the parser subsequently attempts to insert the element.</li>

Modified: source
===================================================================
--- source	2013-09-14 04:02:52 UTC (rev 8187)
+++ source	2013-09-16 17:35:27 UTC (rev 8188)
@@ -99766,11 +99766,14 @@
    element's <span title="concept-fe-value">value</span> and <span
    title="concept-fe-checked">checkedness</span> based on the element's attributes.)</p></li>
 
+<!--CLEANUP-->
    <li><p>If the element is a <span>form-associated element</span>, and the <span><code
    title="">form</code> element pointer</span> is not null, and there is no <code>template</code>
    element on the <span>stack of open elements</span>, and the newly created element is either not
    <span title="category-form-attr">reassociateable</span> or doesn't have a <code
-   title="attr-fae-form">form</code> attribute, <span
+   title="attr-fae-form">form</code> attribute, and the <var title="">intended parent</var> is in
+   the same <span>home subtree</span> as the element pointed to by the <span><code
+   title="">form</code> element pointer</span>, <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>, and suppress the running of the <span>reset the form owner</span> algorithm when




More information about the Commit-Watchers mailing list