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 Nov 6, 2020
1 parent 0de5ae3 commit 0e4ee38
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 @@ -2368,6 +2368,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 @@ -2432,8 +2434,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 @@ -2546,6 +2546,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 @@ -2578,6 +2580,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 @@ -5315,9 +5320,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 0e4ee38

Please sign in to comment.