NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 137 - fix a bug in the AAA to make it work even when doing foster parenting.
fix a bug in the AAA to make it work even when doing foster parenting.
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-05 09:46 CET by Nobody
Modified: 2008-03-07 23:57 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody 2008-03-05 09:46:20 CET
Index: source
===================================================================
--- source	(revision 1342)
+++ source	(revision 1343)
@@ -39667,10 +39667,28 @@
 
      </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>