Skip to content

Commit

Permalink
Correct removal bookkeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
domfarolino committed Oct 10, 2024
1 parent 1d4bb01 commit 696e0fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2872,13 +2872,13 @@ ignore>oldParent</var> as indicated in the <a for=/>move</a> algorithm below.
a <var>child</var>, run these steps:

<ol>
<!-- Start removing-related bookkeeping steps -->
<li><p>Let <var>oldParent</var> be <var>node</var>'s <a for=tree>parent</a>.

<li><p><a>Assert</a>: <var>parent</var> is non-null.
<li><p><a>Assert</a>: <var>oldParent</var> is non-null.

<li><p>Let <var>index</var> be <var>node</var>'s <a for=tree>index</a>.

<!-- Start removing-related bookkeeping steps -->
<li><p>For each <a>live range</a> whose <a for=range>start node</a> is an
<a>inclusive descendant</a> of <var>node</var>, set its <a for=range>start</a> to
(<var>parent</var>, <var>index</var>).
Expand All @@ -2903,7 +2903,7 @@ a <var>child</var>, run these steps:

<li><p>Let <var>oldNextSibling</var> be <var>node</var>'s <a for=tree>next sibling</a>.

<li><p><a for=set>Remove</a> <var>node</var> from its <var>parent</var>'s <a for=tree>children</a>.
<li><p><a for=set>Remove</a> <var>node</var> from <var>oldParent</var>'s <a for=tree>children</a>.

<!-- Start insertion-related bookkeeping steps -->
<li>
Expand Down

0 comments on commit 696e0fe

Please sign in to comment.