Skip to content

Commit

Permalink
[cgiowt] (3) Make parser-driven form element pointer associations not…
Browse files Browse the repository at this point in the history
… 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

git-svn-id: http://svn.whatwg.org/webapps@8188 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 16, 2013
1 parent 6eb5718 commit 4a527c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions complete.html
Expand Up @@ -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 &mdash; Last Updated 14 September 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -89303,9 +89303,11 @@ <h5 id=creating-and-inserting-nodes><span class=secno>12.2.5.1 </span>Creating a
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>
Expand Down
6 changes: 4 additions & 2 deletions index
Expand Up @@ -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 &mdash; Last Updated 14 September 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -89303,9 +89303,11 @@ dictionary <dfn id=storageeventinit>StorageEventInit</dfn> : <a href=#eventinit>
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>
Expand Down
5 changes: 4 additions & 1 deletion source
Expand Up @@ -99766,11 +99766,14 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
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
Expand Down

0 comments on commit 4a527c8

Please sign in to comment.