Skip to content

improve handling of invalid XML documents #14

Open
@taveras

Description

@taveras

per @johnkpaul 's suggestion, we should refine the behavior when faced with an invalid XML document.

today, XMLToReact#convert will simply log a warning when supplied with an invalid XML document. it will also log the warning for all xmldom error levels.


Here are a few questions around this:

  • How should we handle the three xmldom error levels (warning, error, fatal)?
  • Should we strictly throw an error when coming across an invalid XML document?
  • Should we have a 'quirks mode' option with forgiving parsing, similar to HTML parsing?
  • If yes to the previous question, should we be in 'quirks mode' by default, and have an opt-in 'strict mode'?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions