Skip to content

LibWeb: Make DOM::validate_and_extract() preserve entire local name#8345

Merged
shannonbooth merged 1 commit intoLadybirdBrowser:masterfrom
sideshowbarker:split-on-first-colon
Mar 10, 2026
Merged

LibWeb: Make DOM::validate_and_extract() preserve entire local name#8345
shannonbooth merged 1 commit intoLadybirdBrowser:masterfrom
sideshowbarker:split-on-first-colon

Conversation

@sideshowbarker
Copy link
Copy Markdown
Contributor

@sideshowbarker sideshowbarker commented Mar 10, 2026

Change local-name computation in DOM::validate_and_extract() to preserve everything after the first colon in a qualified name — matching a recent spec change made in whatwg/dom#1455 (and replacing a previous spec requirement to use the “strictly split” algorithm, which resulted in throwing away any other part of the name after any second colon the name might have).

For the qualified name f:o:o, this change now gives localName=o:o. Otherwise, without this change, it’d instead give localName=o.

Change local-name computation in DOM::validate_and_extract() to preserve
everything after the first colon in a qualified name — matching a recent
spec change made in whatwg/dom#1455 (and
replacing a previous spec requirement to use the “strictly split”
algorithm, which resulted in throwing away any other part of the name
after any second colon the name might have).

For the qualified name “f:o:o”, this change now gives localName=“o:o”.
Otherwise, without this change, it’d instead give localName=“o”.
@shannonbooth shannonbooth enabled auto-merge (rebase) March 10, 2026 09:26
@shannonbooth shannonbooth merged commit 7adaded into LadybirdBrowser:master Mar 10, 2026
12 of 13 checks passed
@sideshowbarker sideshowbarker deleted the split-on-first-colon branch March 10, 2026 10:19
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