Skip to content

jQuery.parseXML should add detailed information about parse errors #4784

Closed
@MatthiasSchmalz

Description

@MatthiasSchmalz

Description

If an invalid XML is passed to jQuery.parseXML, currently the thrown parse error only contain the input data but not the error reason.
However the internally created XML document contains the parser errors in the element parsererror as innerText and could be added. This is helpful for debugging errors in XML files

Link to test case

https://jsfiddle.net/o678xuz3/

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions