Skip to content

Interface of returned document with parseFromString(.., "text/xml") #11372

Open
@emilio

Description

@emilio

What is the issue with the HTML Standard?

It's not clear from https://html.spec.whatwg.org/#dom-domparser-parsefromstring what the interface of the returned document should be.

We have this test written by @Ms2ger which asserts that the returned document is a Document, but not an XMLDocument. All browsers fail it: https://wpt.fyi/results/domparsing/DOMParser-parseFromString-xml.html

The spec should probably be clarified and the test fixed? Happy to do the later, not sure what the right way of doing the former would be but happy to do so with some guidance.

cc @annevk

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