Skip to content

Clarification on Document-createElementNS testcase #53464

Open
@minghuaw

Description

@minghuaw

For the test case below, why would it accept an empty string as the expected value for 'element.prefix' instead of a null?

["", ":foo", null],

assert_equals(element.prefix, names[0], 'element.prefix')

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions