[html5] r1343 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Mar 4 20:59:31 PST 2008


Author: ianh
Date: 2008-03-04 20:59:27 -0800 (Tue, 04 Mar 2008)
New Revision: 1343

Modified:
   index
   source
Log:
[act] (2) fix a bug in the AAA to make it work even when doing foster parenting.

Modified: index
===================================================================
--- index	2008-03-04 23:40:10 UTC (rev 1342)
+++ index	2008-03-05 04:59:27 UTC (rev 1343)
@@ -24,7 +24,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=working>Working Draft — 4 March 2008</h2>
+   <h2 class="no-num no-toc" id=working>Working Draft — 5 March 2008</h2>
 
    <p>You can take part in this work. <a
     href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -42501,10 +42501,28 @@
       </ol>
 
      <li>
-      <p>Insert whatever <var title="">last node</var> ended up being in the
-       previous step into the <var title="">common ancestor</var> node, first
-       removing it from its previous parent node if any.
+      <p>If the <var title="">common ancestor</var> node is a <code><a
+       href="#table">table</a></code>, <code><a
+       href="#tbody">tbody</a></code>, <code><a
+       href="#tfoot0">tfoot</a></code>, <code><a
+       href="#thead0">thead</a></code>, or <code><a href="#tr">tr</a></code>
+       element, then, insert whatever <var title="">last node</var> ended up
+       being in the previous step into the <i><a href="#foster">foster parent
+       element</a></i>. If the <i><a href="#foster">foster parent
+       element</a></i> is the parent element of the last <code><a
+       href="#table">table</a></code> element in the <a href="#stack">stack
+       of open elements</a>, then <var title="">last node</var> must be
+       inserted immediately <em>before</em> the last <code><a
+       href="#table">table</a></code> element in the <a href="#stack">stack
+       of open elements</a> in the <i><a href="#foster">foster parent
+       element</a></i>; otherwise, <var title="">last node</var> must be
+       <em>appended</em> to the <i><a href="#foster">foster parent
+       element</a></i>.</p>
 
+      <p>Otherwise, append whatever <var title="">last node</var> ended up
+       being in the previous step to the <var title="">common ancestor</var>
+       node, first removing it from its previous parent node if any.</p>
+
      <li>
       <p>Perform a shallow clone of the <var title="">formatting
        element</var>.
@@ -43102,14 +43120,14 @@
      element before the last <code><a href="#table">table</a></code> element
      in the <a href="#stack">stack of open elements</a>.</p>
 
-    <p>If the <em><a href="#foster">foster parent element</a></em> is the
+    <p>If the <i><a href="#foster">foster parent element</a></i> is the
      parent element of the last <code><a href="#table">table</a></code>
      element in the <a href="#stack">stack of open elements</a>, then the new
      node must be inserted immediately <em>before</em> the last <code><a
      href="#table">table</a></code> element in the <a href="#stack">stack of
-     open elements</a> in the <a href="#foster">foster parent element</a>;
-     otherwise, the new node must be <em>appended</em> to the <a
-     href="#foster">foster parent element</a>.</p>
+     open elements</a> in the <i><a href="#foster">foster parent
+     element</a></i>; otherwise, the new node must be <em>appended</em> to
+     the <i><a href="#foster">foster parent element</a></i>.</p>
   </dl>
 
   <p>When the steps above require the UA to <dfn id=clear1>clear the stack

Modified: source
===================================================================
--- source	2008-03-04 23:40:10 UTC (rev 1342)
+++ source	2008-03-05 04:59:27 UTC (rev 1343)
@@ -39667,11 +39667,29 @@
 
      </li>
 
-     <li><p>Insert whatever <var title="">last node</var> ended up
-     being in the previous step into the <var title="">common
-     ancestor</var> node, first removing it from its previous
-     parent node if any.</p></li>
+     <li>
 
+      <p>If the <var title="">common ancestor</var> node is a
+      <code>table</code>, <code>tbody</code>, <code>tfoot</code>,
+      <code>thead</code>, or <code>tr</code> element, then, insert
+      whatever <var title="">last node</var> ended up being in the
+      previous step into the <i>foster parent element</i>. If the
+      <i>foster parent element</i> is the parent element of the last
+      <code>table</code> element in the <span>stack of open
+      elements</span>, then <var title="">last node</var> must be
+      inserted immediately <em>before</em> the last <code>table</code>
+      element in the <span>stack of open elements</span> in the
+      <i>foster parent element</i>; otherwise, <var title="">last
+      node</var> must be <em>appended</em> to the <i>foster parent
+      element</i>.</p>
+
+      <p>Otherwise, append whatever <var title="">last node</var>
+      ended up being in the previous step to the <var title="">common
+      ancestor</var> node, first removing it from its previous parent
+      node if any.</p>
+
+     </li>
+
      <li><p>Perform a shallow clone of the <var title="">formatting
      element</var>.</p></li>
 
@@ -40317,14 +40335,13 @@
     element before the last <code>table</code> element in the
     <span>stack of open elements</span>.</p>
 
-    <p>If the <em>foster parent element</em> is the parent element
-    of the last <code>table</code> element in the <span>stack of
-    open elements</span>, then the new node must be inserted
-    immediately <em>before</em> the last <code>table</code>
-    element in the <span>stack of open elements</span> in the
-    <span>foster parent element</span>; otherwise, the new node
-    must be <em>appended</em> to the <span>foster parent
-    element</span>.</p>
+    <p>If the <i>foster parent element</i> is the parent element of
+    the last <code>table</code> element in the <span>stack of open
+    elements</span>, then the new node must be inserted immediately
+    <em>before</em> the last <code>table</code> element in the
+    <span>stack of open elements</span> in the <i>foster parent
+    element</i>; otherwise, the new node must be <em>appended</em> to
+    the <i>foster parent element</i>.</p>
 
    </dd>
 




More information about the Commit-Watchers mailing list