wvbe / slimdom-sax-parser

Parse an XML string to a light-weight spec-compliant document object model, for browser and Node
https://www.npmjs.com/package/slimdom-sax-parser
MIT License
8 stars 5 forks source link

Make the xml namespace always known #1

Closed DrRataplan closed 6 years ago

DrRataplan commented 6 years ago

The XML namespace is a strange duck in the bite: it is always known.

DrRataplan commented 6 years ago

spec: https://www.w3.org/TR/xml-names/#ns-decl

The prefix xml is by definition bound to the namespace name http://www.w3.org/XML/1998/namespace. It MAY, but need not, be declared, and MUST NOT be bound to any other namespace name. Other prefixes MUST NOT be bound to this namespace name, and it MUST NOT be declared as the default namespace.

wvbe commented 6 years ago

Thanks for the PR!