Skip to content

LibWeb/DOM: Collapse ranges before DOM mutations#8944

Merged
shannonbooth merged 1 commit intoLadybirdBrowser:masterfrom
AtkinsSJ:collapse-dom-ranges
Apr 17, 2026
Merged

LibWeb/DOM: Collapse ranges before DOM mutations#8944
shannonbooth merged 1 commit intoLadybirdBrowser:masterfrom
AtkinsSJ:collapse-dom-ranges

Conversation

@AtkinsSJ
Copy link
Copy Markdown
Member

The spec text has also changed since we implemented it, but moving when we collapse the range is the only actual behaviour change.

Corresponds to:
whatwg/dom@9363c6d

@shannonbooth
Copy link
Copy Markdown
Member

@shannonbooth
Copy link
Copy Markdown
Member

Which we pass already, maybe is actually the other linked test (currently still open) to that DOM MR?

@AtkinsSJ
Copy link
Copy Markdown
Member Author

The tests in web-platform-tests/wpt#58008 also pass with or without the changes here, so I've left them.

@shannonbooth
Copy link
Copy Markdown
Member

Curious!

The spec text has also changed since we implemented it, but moving when
we collapse the range is the only actual behaviour change.

Corresponds to:
whatwg/dom@9363c6d
@AtkinsSJ AtkinsSJ force-pushed the collapse-dom-ranges branch from 3ba61ba to 10eb44f Compare April 17, 2026 13:19
@AtkinsSJ
Copy link
Copy Markdown
Member Author

Rebased to solve the rust-linting issue.

@shannonbooth shannonbooth merged commit f4372de into LadybirdBrowser:master Apr 17, 2026
19 of 20 checks passed
@AtkinsSJ AtkinsSJ deleted the collapse-dom-ranges branch April 17, 2026 18:32
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.

2 participants