Skip to content

Commit 3de55b3

Browse files
authored
A clonable shadow tree is cloned in its entirety
Tests: web-platform-tests/wpt#44247. Fixes #1249.
1 parent b9700e0 commit 3de55b3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dom.bs

+4-5
Original file line numberDiff line numberDiff line change
@@ -4517,11 +4517,10 @@ dom-Range-extractContents, dom-Range-cloneContents -->
45174517
<li><p>Set <var>copy</var>'s <a for=Element>shadow root</a>'s <a for=ShadowRoot>declarative</a>
45184518
to <var>node</var>'s <a for=Element>shadow root</a>'s <a for=ShadowRoot>declarative</a>.
45194519

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

45274526
<li><p>Return <var>copy</var>.

0 commit comments

Comments
 (0)