Skip to content

Commit

Permalink
[giow] (2) Try to match implementations better.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=15704
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7094 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 7, 2012
1 parent d79aa75 commit 3bea85e
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 44 deletions.
36 changes: 22 additions & 14 deletions complete.html
Expand Up @@ -52926,28 +52926,36 @@ <h4 id=association-of-controls-and-forms><span class=secno>4.10.18 </span>Associ
<p>When a <a href=#form-associated-element>form-associated element</a> is to be <dfn id=concept-form-association title=concept-form-association>associated</dfn> with a form, its
<a href=#form-owner>form owner</a> must be set to that form.</p>

<p>When a <a href=#form-associated-element>form-associated element</a>'s ancestor chain
changes, e.g. because it or one of its ancestors was <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted</a> or <a href=#remove-an-element-from-a-document title="remove an element from a document">removed</a> from a
<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 element. <span class=note>The <a href=#html-parser>HTML
parser</a> overrides this requirement when inserting form
controls.</span></p>
<p>When a <a href=#form-associated-element>form-associated element</a> or one of its
ancestors is <a href=#insert-an-element-into-a-document title="insert an element into a
document">inserted into a <code>Document</code></a>, 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>. <span class=note>The
<a href=#html-parser>HTML parser</a> overrides this requirement when inserting
form controls.</span></p>

<p>When an element is <a href=#remove-an-element-from-a-document title="remove an element from a
document">removed from a <code>Document</code></a> resulting in a
<a href=#form-associated-element>form-associated element</a> and its <a href=#form-owner>form owner</a>
(if any) no longer being in the same <span>host subtree</span>, 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>'s <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is set, changed, or
removed, then the user agent must <a href=#reset-the-form-owner>reset the form 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 <a href=#concept-id title=concept-id>ID</a> of any of the
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
<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 <a href=#concept-id title=concept-id>ID</a> of any of the 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
<a href=#concept-id title=concept-id>ID</a> 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>
<a href=#concept-id title=concept-id>ID</a> 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
<a href=#form-associated-element>form-associated element</a>, it must run the following
Expand Down
36 changes: 22 additions & 14 deletions index
Expand Up @@ -52926,28 +52926,36 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
<p>When a <a href=#form-associated-element>form-associated element</a> is to be <dfn id=concept-form-association title=concept-form-association>associated</dfn> with a form, its
<a href=#form-owner>form owner</a> must be set to that form.</p>

<p>When a <a href=#form-associated-element>form-associated element</a>'s ancestor chain
changes, e.g. because it or one of its ancestors was <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted</a> or <a href=#remove-an-element-from-a-document title="remove an element from a document">removed</a> from a
<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 element. <span class=note>The <a href=#html-parser>HTML
parser</a> overrides this requirement when inserting form
controls.</span></p>
<p>When a <a href=#form-associated-element>form-associated element</a> or one of its
ancestors is <a href=#insert-an-element-into-a-document title="insert an element into a
document">inserted into a <code>Document</code></a>, 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>. <span class=note>The
<a href=#html-parser>HTML parser</a> overrides this requirement when inserting
form controls.</span></p>

<p>When an element is <a href=#remove-an-element-from-a-document title="remove an element from a
document">removed from a <code>Document</code></a> resulting in a
<a href=#form-associated-element>form-associated element</a> and its <a href=#form-owner>form owner</a>
(if any) no longer being in the same <span>host subtree</span>, 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>'s <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is set, changed, or
removed, then the user agent must <a href=#reset-the-form-owner>reset the form 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 <a href=#concept-id title=concept-id>ID</a> of any of the
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
<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 <a href=#concept-id title=concept-id>ID</a> of any of the 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
<a href=#concept-id title=concept-id>ID</a> 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>
<a href=#concept-id title=concept-id>ID</a> 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
<a href=#form-associated-element>form-associated element</a>, it must run the following
Expand Down
39 changes: 23 additions & 16 deletions source
Expand Up @@ -61779,33 +61779,40 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
title="concept-form-association">associated</dfn> with a form, its
<span>form owner</span> must be set to that form.</p>

<p>When a <span>form-associated element</span>'s ancestor chain
changes, e.g. because it or one of its ancestors was <span
title="insert an element into a document">inserted</span> or <span
title="remove an element from a document">removed</span> from a
<code>Document</code>, then the user agent must <span>reset the form
owner</span> of that element. <span class="note">The <span>HTML
parser</span> overrides this requirement when inserting form
controls.</span></p>
<p>When a <span>form-associated element</span> or one of its
ancestors is <span title="insert an element into a
document">inserted into a <code>Document</code></span>, then the
user agent must <span>reset the form owner</span> of that
<span>form-associated element</span>. <span class="note">The
<span>HTML parser</span> overrides this requirement when inserting
form controls.</span></p>

<p>When an element is <span title="remove an element from a
document">removed from a <code>Document</code></span> resulting in a
<span>form-associated element</span> and its <span>form owner</span>
(if any) no longer being in the same <span>host subtree</span>, 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>'s <code
title="attr-fae-form">form</code> attribute is set, changed, or
removed, then the user agent must <span>reset the form owner</span>
of that element.</p>

<p>When a <span>form-associated element</span> has a <code
title="attr-fae-form">form</code> attribute and the <span title="concept-id">ID</span> of any of the
elements in the <code>Document</code> changes, then the user agent
must <span>reset the form owner</span> of that <span>form-associated
title="attr-fae-form">form</code> attribute and the <span
title="concept-id">ID</span> of any of the 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
<span title="concept-id">ID</span> 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>
<span title="concept-id">ID</span> 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
<span>form-associated element</span>, it must run the following
Expand Down

0 comments on commit 3bea85e

Please sign in to comment.