Bugzilla – Bug 533
Reverse r2732 since it broke pages.
Last modified: 2009-05-27 14:32:12 CEST
Index: source =================================================================== --- source (revision 2861) +++ source (revision 2862) @@ -58286,14 +58286,20 @@ <i>foster parent element</i> instead of the <span>current node</span>.)</p> - <p>The <dfn>foster parent element</dfn> is defined as follows: If - there is no <code>table</code> element in the <span>stack of open - elements</span> (<span>fragment case</span>), then the <i>foster - parent element</i> is the first element in the <span>stack of open - elements</span> (the <code>html</code> element). Otherwise, the - <i>foster parent element</i> is the element before the last + <p>The <dfn>foster parent element</dfn> is the parent element of the + last <code>table</code> element in the <span>stack of open + elements</span>, if there is a <code>table</code> element and it has + such a parent element. If there is no <code>table</code> element in + the <span>stack of open elements</span> (<span>fragment + case</span>), then the <i>foster parent element</i> is the first + element in the <span>stack of open elements</span> (the + <code>html</code> element). Otherwise, if there is a <code>table</code> element in the <span>stack of open - elements</span>.</p> + elements</span>, but the last <code>table</code> element in the + <span>stack of open elements</span> has no parent, or its parent + node is not an element, then the <i>foster parent element</i> is + the element before the last <code>table</code> element in the + <span>stack of open elements</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