[whatwg/dom] Split on first colon in “validate and extract” (PR #1455)

The “validate and extract” algorithm currently uses “strictly split” to split the qualified name on U+003A (:), which splits on every colon. For a qualified name like `"foo:bar:baz"`, that produces prefix `"foo"` and local name `"bar"` — silently discarding the `":baz"` part.

This change splits on the first colon only instead, so the local name is `"bar:baz"`.

This came up in https://github.com/WICG/sanitizer-api/issues/373.

Fixes #1453
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1455

-- Commit Summary --

  * Stop using “strictly split” in “validate and extract”

-- File Changes --

    M dom.bs (7)

-- Patch Links --

https://github.com/whatwg/dom/pull/1455.patch
https://github.com/whatwg/dom/pull/1455.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1455
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1455@github.com>

Received on Friday, 6 March 2026 09:50:26 UTC