Skip to content

Commit 2a24a27

Browse files
committed
Editorial: always pass oldParent to removing steps
1 parent ad6a3e5 commit 2a24a27

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dom.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,11 +2866,12 @@ within a <var>parent</var>, run these steps:
28662866

28672867
<p><a lt="Other applicable specifications">Specifications</a> may define
28682868
<dfn export id=concept-node-remove-ext>removing steps</dfn> for all or some <a for=/>nodes</a>. The
2869-
algorithm is passed <var ignore>removedNode</var>, and optionally <var ignore>oldParent</var>, as
2870-
indicated in the <a for=/>remove</a> algorithm below.
2869+
algorithm is passed a <a for=/>node</a> <var ignore>removedNode</var> and a
2870+
<a for=/>node</a>-or-null <var ignore>oldParent</var>, as indicated in the <a for=/>remove</a>
2871+
algorithm below.
28712872

2872-
<p>To <dfn export id=concept-node-remove>remove</dfn> a <var>node</var>, with an optional
2873-
<i>suppress observers flag</i>, run these steps:
2873+
<p>To <dfn export id=concept-node-remove>remove</dfn> a <a for=/>node</a> <var>node</var>, with an
2874+
optional <i>suppress observers flag</i>, run these steps:
28742875

28752876
<ol>
28762877
<li><p>Let <var>parent</var> be <var>node</var>'s <a for=tree>parent</a>.
@@ -2938,7 +2939,7 @@ indicated in the <a for=/>remove</a> algorithm below.
29382939
<a>shadow-including tree order</a>, then:
29392940

29402941
<ol>
2941-
<li><p>Run the <a>removing steps</a> with <var>descendant</var>.
2942+
<li><p>Run the <a>removing steps</a> with <var>descendant</var> and null.
29422943

29432944
<li><p>If <var>descendant</var> is <a for=Element>custom</a> and <var>isParentConnected</var>
29442945
is true, then <a>enqueue a custom element callback reaction</a> with <var>descendant</var>,

0 commit comments

Comments
 (0)