Bugzilla – Bug 523
Simplify the foster parenting definition a tiny bit.
Last modified: 2009-11-23 17:17:25 CET
Index: source =================================================================== --- source (revision 2731) +++ source (revision 2732) @@ -56564,20 +56564,14 @@ <i>foster parent element</i> instead of the <span>current node</span>.)</p> - <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 + <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 <code>table</code> element in the <span>stack of open - 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> + 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