xmlns-xml-default-prefix.js 393 B

123456789101112131415161718192021
  1. require(__dirname).test(
  2. { xml : "<xml:root/>"
  3. , expect :
  4. [
  5. [ "opentag"
  6. , { name: "xml:root"
  7. , uri: "http://www.w3.org/XML/1998/namespace"
  8. , prefix: "xml"
  9. , local: "root"
  10. , attributes: {}
  11. , ns: {}
  12. , isSelfClosing: true
  13. }
  14. ]
  15. , ["closetag", "xml:root"]
  16. ]
  17. , strict : true
  18. , opt : { xmlns: true }
  19. }
  20. )