Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw InvalidNodeTypeError for doctype more eagerly #342

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ <h2>
<li>If <var>node</var> is null, this method must behave identically
as <code>removeAllRanges()</code> and abort these steps.
</li>
<li>If <var>node</var> is a {{DocumentType}}, throw an
{{InvalidNodeTypeError}} exception and abort these steps.
</li>
<li>The method must throw an {{IndexSizeError}} exception if <var>
offset</var> is longer than <var>node</var>'s [=Node/length=] and
abort these steps.
Expand Down Expand Up @@ -625,6 +628,9 @@ <h2>
The method must follow these steps:
</p>
<ol>
<li>If <var>node</var> is a {{DocumentType}}, throw an
{{InvalidNodeTypeError}} exception and abort these steps.
</li>
<li>If <var>node</var>'s [=tree/root=] is not the <a>document</a>
associated with [=this=], abort these steps.
</li>
Expand Down
Loading