Open
Description
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'?