Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow committed Apr 17, 2024
1 parent 9319ff4 commit 2210bce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3045,14 +3045,14 @@ standards that want to define APIs shared between <a for=/>documents</a> and
<li><p>Let <var>isScriptElement</var> be true if <var>parent</var> is an {{HTMLScriptElement}}
<a for=/>node</a>; otherwise false.

<li><p>Let <var>newNodes</var> be the empty list.
<li><p>Let <var>newNodes</var> be « ».

<li>
<p><a for=list>For each</a> <var>value</var> of <var>nodes</var>:

<ol>
<li>
<p>If <var>value</var> is a {{Text}} <a for=/>node</a>, and <var>isScriptElement</var>
<p>If <var>value</var> is a {{Text}} <a for=/>node</a> and <var>isScriptElement</var>
is true:

<ol>
Expand All @@ -3070,14 +3070,14 @@ standards that want to define APIs shared between <a for=/>documents</a> and

<ol>
<li><p>Let <var>newValue</var> be a new {{Text}} <a for=/>node</a> whose
<a for=CharacterData>data</a> is <var>value</var>'s <a for=TrustedScript>\[[Data]]</a>
internal slot value and <a for=Node>node document</a> is <var>document</var>.
<a for=CharacterData>data</a> is <var>value</var>'s <a for=TrustedScript>data</a>
and <a for=Node>node document</a> is <var>document</var>.

<li><p><a for=list>Append</a> <var>newValue</var> to <var>newNodes</var>.
</ol>

<li><p>Otherwise, <a for=list>append</a> <var>value</var> to <var>newNodes</var>.
</ol>
</ol>

<li><p>If <var>newNodes</var> contains one <a for=/>node</a>, then set <var>node</var> to
<var>newNodes</var>[0].
Expand Down

0 comments on commit 2210bce

Please sign in to comment.