Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ct] (2) Simplify the foster parenting definition a tiny bit.
git-svn-id: http://svn.whatwg.org/webapps@2732 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 1, 2009
1 parent 2e06b93 commit d20c8e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
20 changes: 7 additions & 13 deletions index
Expand Up @@ -49575,20 +49575,14 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
<i><a href=#foster-parent-element>foster parent element</a></i> instead of the <a href=#current-node>current
node</a>.)</p>

<p>The <dfn id=foster-parent-element>foster parent element</dfn> is the parent element of the
last <code><a href=#the-table-element>table</a></code> element in the <a href=#stack-of-open-elements>stack of open
elements</a>, if there is a <code><a href=#the-table-element>table</a></code> element and it has
such a parent element. If there is no <code><a href=#the-table-element>table</a></code> element in
the <a href=#stack-of-open-elements>stack of open elements</a> (<a href=#fragment-case>fragment
case</a>), then the <i><a href=#foster-parent-element>foster parent element</a></i> is the first
element in the <a href=#stack-of-open-elements>stack of open elements</a> (the
<code><a href=#the-html-element>html</a></code> element). Otherwise, if there is a
<p>The <dfn id=foster-parent-element>foster parent element</dfn> is defined as follows: If
there is no <code><a href=#the-table-element>table</a></code> element in the <a href=#stack-of-open-elements>stack of open
elements</a> (<a href=#fragment-case>fragment case</a>), then the <i><a href=#foster-parent-element>foster
parent element</a></i> is the first element in the <a href=#stack-of-open-elements>stack of open
elements</a> (the <code><a href=#the-html-element>html</a></code> element). Otherwise, the
<i><a href=#foster-parent-element>foster parent element</a></i> is the element before the last
<code><a href=#the-table-element>table</a></code> element in the <a href=#stack-of-open-elements>stack of open
elements</a>, but the last <code><a href=#the-table-element>table</a></code> element in the
<a href=#stack-of-open-elements>stack of open elements</a> has no parent, or its parent
node is not an element, then the <i><a href=#foster-parent-element>foster parent element</a></i> is
the element before the last <code><a href=#the-table-element>table</a></code> element in the
<a href=#stack-of-open-elements>stack of open elements</a>.</p>
elements</a>.</p>

<p>If the <i><a href=#foster-parent-element>foster parent element</a></i> is the parent element of the
last <code><a href=#the-table-element>table</a></code> element in the <a href=#stack-of-open-elements>stack of open
Expand Down
20 changes: 7 additions & 13 deletions source
Expand Up @@ -56564,20 +56564,14 @@ interface <dfn>MessageChannel</dfn> {
<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
Expand Down

0 comments on commit d20c8e4

Please sign in to comment.