[html5] r2794 - [ct] (2) Attempt to simplify the AAA a bit and make it less dependent on the DOM [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Feb 11 15:31:44 PST 2009


Author: ianh
Date: 2009-02-11 15:31:43 -0800 (Wed, 11 Feb 2009)
New Revision: 2794

Modified:
   index
   source
Log:
[ct] (2) Attempt to simplify the AAA a bit and make it less dependent on the DOM state. Please send feedback if this breaks anything. (It is expected that this will increase the number of DOM nodes in certain cases.)

Modified: index
===================================================================
--- index	2009-02-11 21:12:26 UTC (rev 2793)
+++ index	2009-02-11 23:31:43 UTC (rev 2794)
@@ -51506,10 +51506,6 @@
      immediately above the <var title="">formatting element</var> in the
      <a href=#stack-of-open-elements>stack of open elements</a>.</li>
 
-     <li><p>If the <var title="">furthest block</var> has a parent node,
-     then remove the <var title="">furthest block</var> from its parent
-     node.</li>
-
      <li><p>Let a bookmark note the position of the <var title="">formatting element</var> in the <a href=#list-of-active-formatting-elements>list of active
      formatting elements</a> relative to the elements on either
      side of it in the list.</li>
@@ -51534,7 +51530,7 @@
        bookmark to be immediately after the <var title="">node</var> in the <a href=#list-of-active-formatting-elements>list of active formatting
        elements</a>.</li>
 
-       <li>If <var title="">node</var> has any children, perform a shallow
+       <li>Perform a shallow
        clone of <var title="">node</var>, replace the entry for
        <var title="">node</var> in the <a href=#list-of-active-formatting-elements>list of active formatting
        elements</a> with an entry for the clone, replace the
@@ -51557,7 +51553,8 @@
       <code><a href=#the-table-element>table</a></code>, <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-tfoot-element>tfoot</a></code>,
       <code><a href=#the-thead-element>thead</a></code>, or <code><a href=#the-tr-element>tr</a></code> element, then,
       <a href=#foster-parent>foster parent</a> whatever <var title="">last
-      node</var> ended up being in the previous step.</p>
+      node</var> ended up being in the previous step, first removing
+      it from its previous parent node if any.</p>
 
       <p>Otherwise, append whatever <var title="">last node</var>
       ended up being in the previous step to the <var title="">common

Modified: source
===================================================================
--- source	2009-02-11 21:12:26 UTC (rev 2793)
+++ source	2009-02-11 23:31:43 UTC (rev 2794)
@@ -58750,10 +58750,6 @@
      immediately above the <var title="">formatting element</var> in the
      <span>stack of open elements</span>.</p></li>
 
-     <li><p>If the <var title="">furthest block</var> has a parent node,
-     then remove the <var title="">furthest block</var> from its parent
-     node.</p></li>
-
      <li><p>Let a bookmark note the position of the <var
      title="">formatting element</var> in the <span>list of active
      formatting elements</span> relative to the elements on either
@@ -58785,7 +58781,7 @@
        title="">node</var> in the <span>list of active formatting
        elements</span>.</li>
 
-       <li>If <var title="">node</var> has any children, perform a shallow
+       <li>Perform a shallow
        clone of <var title="">node</var>, replace the entry for
        <var title="">node</var> in the <span>list of active formatting
        elements</span> with an entry for the clone, replace the
@@ -58811,7 +58807,8 @@
       <code>table</code>, <code>tbody</code>, <code>tfoot</code>,
       <code>thead</code>, or <code>tr</code> element, then,
       <span>foster parent</span> whatever <var title="">last
-      node</var> ended up being in the previous step.</p>
+      node</var> ended up being in the previous step, first removing
+      it from its previous parent node if any.</p>
 
       <p>Otherwise, append whatever <var title="">last node</var>
       ended up being in the previous step to the <var title="">common




More information about the Commit-Watchers mailing list