Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (0) Fix details of form-association to handle a non-form eleme…
…nt with a matching ID being inserted (by ID change) before the existing form, and to handle a new element with that ID being inserted or an element with that ID being removed.

git-svn-id: http://svn.whatwg.org/webapps@4979 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 6, 2010
1 parent fea3de1 commit 8f843c9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
15 changes: 11 additions & 4 deletions complete.html
Expand Up @@ -40767,8 +40767,15 @@ <h4 id=association-of-controls-and-forms><span class=secno>4.10.18 </span>Associ
owner</a> of that element.</p>

<p>When a <a href=#form-associated-element>form-associated element</a> has a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute and the ID of any of the
<code><a href=#the-form-element>form</a></code> elements in the <code><a href=#document>Document</a></code> changes,
then the user agent must <a href=#reset-the-form-owner>reset the form owner</a> of that
elements in the <code><a href=#document>Document</a></code> changes, then the user agent
must <a href=#reset-the-form-owner>reset the form owner</a> of that <a href=#form-associated-element>form-associated
element</a>.</p>

<p>When a <a href=#form-associated-element>form-associated element</a> has a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute and an element with an
ID is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted
into</a> or <a href=#remove-an-element-from-a-document title="remove an element from a
document">removed from</a> the <code><a href=#document>Document</a></code>, then the
user agent must <a href=#reset-the-form-owner>reset the form owner</a> of that
<a href=#form-associated-element>form-associated element</a>.</p>

<p>When the user agent is to <dfn id=reset-the-form-owner>reset the form owner</dfn> of a
Expand All @@ -40790,8 +40797,8 @@ <h4 id=association-of-controls-and-forms><span class=secno>4.10.18 </span>Associ
content attribute, then run these substeps:</p>

<ol><!-- note that this ignores the name="" attribute and is
unaffected by quirks mode (it's always case sensitive) --><li><p>If the first element in the <code><a href=#document>Document</a></code> to have
an ID that is <a href=#case-sensitive title=case-sensitive>case-sensitively</a> equal to the
unaffected by quirks mode (it's always case sensitive) --><li><p>If the first element <a href=#in-a-document title="in a Document">in the
<code>Document</code></a> to have an ID that is <a href=#case-sensitive title=case-sensitive>case-sensitively</a> equal to the
element's <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> content
attribute's value is a <code><a href=#the-form-element>form</a></code> element, then <a href=#concept-form-association title=concept-form-association>associate</a> the
<a href=#form-associated-element>form-associated element</a> with that <code><a href=#the-form-element>form</a></code>
Expand Down
15 changes: 11 additions & 4 deletions index
Expand Up @@ -40668,8 +40668,15 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
owner</a> of that element.</p>

<p>When a <a href=#form-associated-element>form-associated element</a> has a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute and the ID of any of the
<code><a href=#the-form-element>form</a></code> elements in the <code><a href=#document>Document</a></code> changes,
then the user agent must <a href=#reset-the-form-owner>reset the form owner</a> of that
elements in the <code><a href=#document>Document</a></code> changes, then the user agent
must <a href=#reset-the-form-owner>reset the form owner</a> of that <a href=#form-associated-element>form-associated
element</a>.</p>

<p>When a <a href=#form-associated-element>form-associated element</a> has a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute and an element with an
ID is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted
into</a> or <a href=#remove-an-element-from-a-document title="remove an element from a
document">removed from</a> the <code><a href=#document>Document</a></code>, then the
user agent must <a href=#reset-the-form-owner>reset the form owner</a> of that
<a href=#form-associated-element>form-associated element</a>.</p>

<p>When the user agent is to <dfn id=reset-the-form-owner>reset the form owner</dfn> of a
Expand All @@ -40691,8 +40698,8 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
content attribute, then run these substeps:</p>

<ol><!-- note that this ignores the name="" attribute and is
unaffected by quirks mode (it's always case sensitive) --><li><p>If the first element in the <code><a href=#document>Document</a></code> to have
an ID that is <a href=#case-sensitive title=case-sensitive>case-sensitively</a> equal to the
unaffected by quirks mode (it's always case sensitive) --><li><p>If the first element <a href=#in-a-document title="in a Document">in the
<code>Document</code></a> to have an ID that is <a href=#case-sensitive title=case-sensitive>case-sensitively</a> equal to the
element's <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> content
attribute's value is a <code><a href=#the-form-element>form</a></code> element, then <a href=#concept-form-association title=concept-form-association>associate</a> the
<a href=#form-associated-element>form-associated element</a> with that <code><a href=#the-form-element>form</a></code>
Expand Down
16 changes: 12 additions & 4 deletions source
Expand Up @@ -45393,8 +45393,16 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>

<p>When a <span>form-associated element</span> has a <code
title="attr-fae-form">form</code> attribute and the ID of any of the
<code>form</code> elements in the <code>Document</code> changes,
then the user agent must <span>reset the form owner</span> of that
elements in the <code>Document</code> changes, then the user agent
must <span>reset the form owner</span> of that <span>form-associated
element</span>.</p>

<p>When a <span>form-associated element</span> has a <code
title="attr-fae-form">form</code> attribute and an element with an
ID is <span title="insert an element into a document">inserted
into</span> or <span title="remove an element from a
document">removed from</span> the <code>Document</code>, then the
user agent must <span>reset the form owner</span> of that
<span>form-associated element</span>.</p>

<p>When the user agent is to <dfn>reset the form owner</dfn> of a
Expand All @@ -45421,8 +45429,8 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>

<!-- note that this ignores the name="" attribute and is
unaffected by quirks mode (it's always case sensitive) -->
<li><p>If the first element in the <code>Document</code> to have
an ID that is <span
<li><p>If the first element <span title="in a Document">in the
<code>Document</code></span> to have an ID that is <span
title="case-sensitive">case-sensitively</span> equal to the
element's <code title="attr-fae-form">form</code> content
attribute's value is a <code>form</code> element, then <span
Expand Down

0 comments on commit 8f843c9

Please sign in to comment.