hixie: Fix details of form-association to handle a non-form element 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. (whatwg r4979)

hixie: Fix details of form-association to handle a non-form element 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. (whatwg r4979)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4001&r2=1.4002&f=h
http://html5.org/tools/web-apps-tracker?from=4978&to=4979

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4001
retrieving revision 1.4002
diff -u -d -r1.4001 -r1.4002
--- Overview.html 6 Apr 2010 01:53:26 -0000 1.4001
+++ Overview.html 6 Apr 2010 09:01:50 -0000 1.4002
@@ -33106,8 +33106,15 @@
   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
@@ -33129,8 +33136,8 @@
     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>

Received on Tuesday, 6 April 2010 09:02:37 UTC