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 Dec 1, 2020
1 parent 73e7f33 commit 488eeab
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 @@ -2331,6 +2331,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 @@ -2395,8 +2397,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 @@ -2509,6 +2509,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 @@ -2541,6 +2543,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>children</a>.

<li><p>Let <var>addedNodes</var> be the empty set.
Expand Down Expand Up @@ -5278,9 +5283,6 @@ must run 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 488eeab

Please sign in to comment.