bwrrp / slimdom.js

Fast, tiny, standards-compliant XML DOM implementation for node and the browser
MIT License
31 stars 8 forks source link

Add XML parser #142

Closed bwrrp closed 2 years ago

bwrrp commented 2 years ago

This adds a non-validating but fully well-formedness checking XML parser built on prsc which follows the XML 1.0 fifth edition and Namespaces in XML third edition specs.

This also integrates the XML Conformance test suites into the Jest tests, to ensure the parser conforms to the specs. A small number of tests is ignored, because they either check for optional errors or because the way we parse from a JavaScript string instead of a raw byte stream prevents certain encoding issues such as invalid Unicode characters.