Skip to content

Commit

Permalink
[ct] (2) Attempt to simplify the AAA a bit and make it less dependent…
Browse files Browse the repository at this point in the history
… on the DOM state. Please send feedback if this breaks anything. (It is expected that this will increase the number of DOM nodes in certain cases.)

git-svn-id: http://svn.whatwg.org/webapps@2794 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 11, 2009
1 parent 94de946 commit e073173
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions index
Expand Up @@ -51506,10 +51506,6 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
immediately above the <var title="">formatting element</var> in the
<a href=#stack-of-open-elements>stack of open elements</a>.</li>

<li><p>If the <var title="">furthest block</var> has a parent node,
then remove the <var title="">furthest block</var> from its parent
node.</li>

<li><p>Let a bookmark note the position of the <var title="">formatting element</var> in the <a href=#list-of-active-formatting-elements>list of active
formatting elements</a> relative to the elements on either
side of it in the list.</li>
Expand All @@ -51534,7 +51530,7 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
bookmark to be immediately after the <var title="">node</var> in the <a href=#list-of-active-formatting-elements>list of active formatting
elements</a>.</li>

<li>If <var title="">node</var> has any children, perform a shallow
<li>Perform a shallow
clone of <var title="">node</var>, replace the entry for
<var title="">node</var> in the <a href=#list-of-active-formatting-elements>list of active formatting
elements</a> with an entry for the clone, replace the
Expand All @@ -51557,7 +51553,8 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
<code><a href=#the-table-element>table</a></code>, <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-tfoot-element>tfoot</a></code>,
<code><a href=#the-thead-element>thead</a></code>, or <code><a href=#the-tr-element>tr</a></code> element, then,
<a href=#foster-parent>foster parent</a> whatever <var title="">last
node</var> ended up being in the previous step.</p>
node</var> ended up being in the previous step, first removing
it from its previous parent node if any.</p>

<p>Otherwise, append whatever <var title="">last node</var>
ended up being in the previous step to the <var title="">common
Expand Down
9 changes: 3 additions & 6 deletions source
Expand Up @@ -58750,10 +58750,6 @@ interface <dfn>MessageChannel</dfn> {
immediately above the <var title="">formatting element</var> in the
<span>stack of open elements</span>.</p></li>

<li><p>If the <var title="">furthest block</var> has a parent node,
then remove the <var title="">furthest block</var> from its parent
node.</p></li>

<li><p>Let a bookmark note the position of the <var
title="">formatting element</var> in the <span>list of active
formatting elements</span> relative to the elements on either
Expand Down Expand Up @@ -58785,7 +58781,7 @@ interface <dfn>MessageChannel</dfn> {
title="">node</var> in the <span>list of active formatting
elements</span>.</li>

<li>If <var title="">node</var> has any children, perform a shallow
<li>Perform a shallow
clone of <var title="">node</var>, replace the entry for
<var title="">node</var> in the <span>list of active formatting
elements</span> with an entry for the clone, replace the
Expand All @@ -58811,7 +58807,8 @@ interface <dfn>MessageChannel</dfn> {
<code>table</code>, <code>tbody</code>, <code>tfoot</code>,
<code>thead</code>, or <code>tr</code> element, then,
<span>foster parent</span> whatever <var title="">last
node</var> ended up being in the previous step.</p>
node</var> ended up being in the previous step, first removing
it from its previous parent node if any.</p>

<p>Otherwise, append whatever <var title="">last node</var>
ended up being in the previous step to the <var title="">common
Expand Down

0 comments on commit e073173

Please sign in to comment.