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

Conversation

awesomekling
Copy link
Contributor

@awesomekling awesomekling commented Nov 16, 2024

This matches how major engines behave and is covered by multiple tests in WPT already.

Closes #118.

Supersedes #86.

Note: I didn't touch setBaseAndExtent here, since Gecko doesn’t throw on doctype but WebKit and Blink do.


Preview | Diff

This matches how major engines behave and is covered by multiple
tests in WPT already.

Closes w3c#118.
awesomekling added a commit to awesomekling/ladybird that referenced this pull request Nov 16, 2024
This matches the behavior of all major engines, and is covered by
hundreds of subtests in WPT.

Spec PR: w3c/selection-api#342
awesomekling added a commit to LadybirdBrowser/ladybird that referenced this pull request Nov 16, 2024
This matches the behavior of all major engines, and is covered by
hundreds of subtests in WPT.

Spec PR: w3c/selection-api#342
@rniwa
Copy link
Contributor

rniwa commented Nov 16, 2024

@siusin : what should we do to have @awesomekling allowed to contribute this PR?

nico pushed a commit to nico/serenity that referenced this pull request Nov 17, 2024
This matches the behavior of all major engines, and is covered by
hundreds of subtests in WPT.

Spec PR: w3c/selection-api#342

(cherry picked from commit 13bd52249d3fe674b8c11049eb66a305e058ee6f)
nico pushed a commit to SerenityOS/serenity that referenced this pull request Nov 17, 2024
This matches the behavior of all major engines, and is covered by
hundreds of subtests in WPT.

Spec PR: w3c/selection-api#342

(cherry picked from commit 13bd52249d3fe674b8c11049eb66a305e058ee6f)
@sideshowbarker
Copy link

@siusin : what should we do to have @awesomekling allowed to contribute this PR?

Working on it. It’ll take another 7 days, til the 25th

@sideshowbarker
Copy link

@siusin : what should we do to have @awesomekling allowed to contribute this PR?

Working on it. It’ll take another 7 days, til the 25th

Ended up being able to fast-track it. Andreas is now a member of the Web Editing working group — so after the patch in this PR gets reviewed and approved, it can be merged into the Selection API spec.

@rniwa
Copy link
Contributor

rniwa commented Nov 19, 2024

Great. Thank you!

@rniwa rniwa merged commit 387e724 into w3c:gh-pages Nov 20, 2024
2 checks passed
gotlougit pushed a commit to gotlougit/ladybird that referenced this pull request Nov 21, 2024
This matches the behavior of all major engines, and is covered by
hundreds of subtests in WPT.

Spec PR: w3c/selection-api#342
nico-engels pushed a commit to nico-engels/ladybird that referenced this pull request Nov 23, 2024
This matches the behavior of all major engines, and is covered by
hundreds of subtests in WPT.

Spec PR: w3c/selection-api#342
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throw InvalidNodeTypeError on DocumentType nodes
3 participants