Bugzilla – Bug 137
fix a bug in the AAA to make it work even when doing foster parenting.
Last modified: 2008-03-07 23:57:37 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>