Skip to content

Commit

Permalink
keep the same order of operations; add return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Dec 14, 2024
1 parent e5c3b37 commit a776615
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4572,6 +4572,10 @@ boolean <var>subtree</var>:
<a>other applicable specifications</a> and pass <var>node</var>, <var>copy</var>, and
<var>subtree</var> as parameters.

<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 and append</a> given
<var>child</var>, <var>copy</var>, <var>document</var>, and <var>subtree</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:
Expand All @@ -4594,9 +4598,7 @@ boolean <var>subtree</var>:
<var>subtree</var>.
</ol>

<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 and append</a> given
<var>child</var>, <var>copy</var>, <var>document</var>, and <var>subtree</var>.
<li><p>Return <var>copy</var>.
</ol>
</div>

Expand Down

0 comments on commit a776615

Please sign in to comment.