Open
Description
For the test case below, why would it accept an empty string as the expected value for 'element.prefix'
instead of a null
?
wpt/dom/nodes/Document-createElementNS.js
Line 42 in fee00f9
I'm asking this because the spec as of today (https://dom.spec.whatwg.org/#valid-namespace-prefix) states that an empty string is NOT a valid namespace prefix. If the expected prefix extracted from ":foo"
is an empty string ""
, shouldn't this test case expect an exception then?
Metadata
Metadata
Assignees
Labels
No labels