Skip to content

Commit

Permalink
Assert -> throw condition
Browse files Browse the repository at this point in the history
  • Loading branch information
domfarolino committed Oct 15, 2024
1 parent caab6e1 commit a9bd9a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2656,7 +2656,8 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the
of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run these steps:

<ol>
<li><p><a>Assert</a>: <var>node</var> is either an {{Element}} or {{CharacterData}}.</p></li>
<li><p>If <var>node</var> is not an {{Element}} or a {{CharacterData}} <a for=/>node</a>, then
<a>throw</a> a "{{HierarchyRequestError!!exception}}" {{DOMException}}.</p></li>

<li><p>If <var>parent</var> is not an {{Element}} <a for=/>node</a>, then <a>throw</a> a
"{{HierarchyRequestError!!exception}}" {{DOMException}}.
Expand Down

0 comments on commit a9bd9a8

Please sign in to comment.