Skip to content

Commit

Permalink
final review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Dec 17, 2024
1 parent 371e70d commit 00e77d7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4557,22 +4557,23 @@ and an optional <a for=/>document</a> <dfn export for="clone a node"><var>docume
<li><p>Let <var>copy</var> be the result of <a>cloning a single node</a> given <var>node</var> and
<var>document</var>.

<li><p>If <var>parent</var> is non-null, then <a for=/>append</a> <var>copy</var> to
<var>parent</var>.

<li><p>Run any <a>cloning steps</a> defined for <var>node</var> in
<a>other applicable specifications</a> and pass <var>node</var>, <var>copy</var>, and
<var>subtree</var> as parameters.

<li><p>If <var>parent</var> is non-null, then <a for=/>append</a> <var>copy</var> to
<var>parent</var>.

<li><p>If <var>subtree</var> is true, then for each <var>child</var> of <var>node</var>'s
<a for=tree>children</a>, in <a>tree order</a>: <a>clone a node</a> given <var>child</var> with
<a for="clone a node"><i>document</i></a> set to <var>document</var>,
<a for="clone a node"><i>subtree</i></a> set to <var>subtree</var>, and
<a for="clone a node"><i>parent</i></a> set to <var>copy</var>.

<li>
<p>If <var>node</var> is an <a for=/>element</a>, <a for=Element>shadow host</a>, and its
<a for=Element>shadow root</a>'s <a for=ShadowRoot>clonable</a> is true:
<p>If <var>node</var> is an <a for=/>element</a>, <var>node</var> is a
<a for=Element>shadow host</a>, and <var>node</var>'s <a for=Element>shadow root</a>'s
<a for=ShadowRoot>clonable</a> is true:

<ol>
<li><p><a for=/>Assert</a>: <var>copy</var> is not a <a for=Element>shadow host</a>.
Expand Down

0 comments on commit 00e77d7

Please sign in to comment.