Skip to content

silent parser errors #1

@bbarker

Description

@bbarker

Confusingly, parser errors do not throw.

From w3c:

Let root be a new Element, with its local name set to "parsererror" and its namespace set to "http://www.mozilla.org/newlayout/xml/parsererror.xml".

Should we build this check into the parseXMLFromString function, and throw an error if detected? Or should we make a separate function? e.g. parseXMLFromStringOrThrow

Thoughts, @toastal @garyb ?

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