Skip to content

Commit

Permalink
A clonable shadow tree is cloned in its entirety
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored Apr 4, 2024
1 parent b9700e0 commit 3de55b3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4517,11 +4517,10 @@ dom-Range-extractContents, dom-Range-cloneContents -->
<li><p>Set <var>copy</var>'s <a for=Element>shadow root</a>'s <a for=ShadowRoot>declarative</a>
to <var>node</var>'s <a for=Element>shadow root</a>'s <a for=ShadowRoot>declarative</a>.

<li><p>If the <i>clone children flag</i> is set, then for each <a for=tree>child</a>
<var>child</var> of <var>node</var>'s <a for=Element>shadow root</a>, in <a>tree order</a>:
<a>append</a> the result of <a lt="clone a node">cloning</a> <var>child</var> with
<var>document</var> and the <i>clone children flag</i> set, to <var>copy</var>'s
<a for=Element>shadow root</a>.
<li><p>For each <a for=tree>child</a> <var>child</var> of <var>node</var>'s
<a for=Element>shadow root</a>, in <a>tree order</a>: <a>append</a> the result of
<a lt="clone a node">cloning</a> <var>child</var> with <var>document</var> and the
<i>clone children flag</i> set, to <var>copy</var>'s <a for=Element>shadow root</a>.
</ol>

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

0 comments on commit 3de55b3

Please sign in to comment.