[whatwg/dom] namespaces: validate and extract uses the strictly split a string in a vague manner (Issue #1134)

Namespaces [validate and extract](https://dom.spec.whatwg.org/#validate-and-extract) uses strictly split a string in the following step:

> 5. If qualifiedName contains a U+003A (:), then [strictly split](https://infra.spec.whatwg.org/#strictly-split) the string on it and set prefix to the part before and localName to the part after.

[strictly-split](https://infra.spec.whatwg.org/#strictly-split) defines the result as a [list](https://infra.spec.whatwg.org/#lists), so "the part before" and "the part after" feels a bit vague. Due to the validation in step two and the branch condition the list will have two elements, but it would be a bit clearer to use list indexing.

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

Message ID: <whatwg/dom/issues/1134@github.com>

Received on Monday, 12 December 2022 01:02:05 UTC