When the namespace is the empty string, it should be made null #327
Labels
breaking change
Some thing that requires a version bump due to breaking changes
bug
Something isn't working
good first issue
Good for newcomers
help-wanted
External contributions welcome
spec:DOM Living Standard
https://dom.spec.whatwg.org/
testing
Milestone
In XML, a null namespace and a namespace of
""
are equivalent.Although DOM Level 2 doesn’t explicitly talk about namespaces which are an empty string (as far as I can tell), replacing
""
withnull
is the first step of validating and extracting a namespace and qualifiedName in the current DOM standard: https://dom.spec.whatwg.org/#validate-and-extract. This algorithm is used by all the*NS()
methods, such ascreateElementNS()
.The text was updated successfully, but these errors were encountered: