Skip to content

Commit

Permalink
Revert "Run adopt as part of insert"
Browse files Browse the repository at this point in the history
This reverts commit c825cea. See #813 and #814 for context.
  • Loading branch information
annevk committed Oct 18, 2022
1 parent bf5f6c2 commit 1b137ba
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2509,6 +2509,8 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the
<li><p>If <var>referenceChild</var> is <var>node</var>, then set <var>referenceChild</var> to
<var>node</var>'s <a for=tree>next sibling</a>.

<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.

<li><p><a for=/>Insert</a> <var>node</var> into <var>parent</var> before <var>referenceChild</var>.

<li><p>Return <var>node</var>.
Expand Down Expand Up @@ -2574,8 +2576,6 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
<p>For each <var>node</var> in <var>nodes</var>, in <a>tree order</a>:

<ol>
<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.

<li><p>If <var>child</var> is null, then <a for=set>append</a> <var>node</var> to
<var>parent</var>'s <a for=tree>children</a>.

Expand Down Expand Up @@ -2689,6 +2689,8 @@ within a <var>parent</var>, run these steps:

<li><p>Let <var>previousSibling</var> be <var>child</var>'s <a>previous sibling</a>.

<li><p><a>Adopt</a> <var>node</var> into <var>parent</var>'s <a for=Node>node document</a>.

<li><p>Let <var>removedNodes</var> be the empty set.

<li>
Expand Down Expand Up @@ -2721,6 +2723,9 @@ within a <var>parent</var>, run these steps:
within a <var>parent</var>, run these steps:

<ol>
<li><p>If <var>node</var> is non-null, then <a>adopt</a> <var>node</var> into <var>parent</var>'s
<a for=Node>node document</a>.

<li><p>Let <var>removedNodes</var> be <var>parent</var>'s <a for=tree>children</a>.

<li><p>Let <var>addedNodes</var> be the empty set.
Expand Down Expand Up @@ -5370,9 +5375,6 @@ these steps:
<li><p>If <var>node</var> is a <a for=/>shadow root</a>, then <a>throw</a> a
"{{HierarchyRequestError!!exception}}" {{DOMException}}.

<li><p>If <var>node</var> is a {{DocumentFragment}} <a for=/>node</a> whose
<a for=DocumentFragment>host</a> is non-null, then return.

<li><p><a>Adopt</a> <var>node</var> into <a>this</a>.

<li><p>Return <var>node</var>.
Expand Down

0 comments on commit 1b137ba

Please sign in to comment.