sax 1.1.0 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE +16 -32
  2. package/lib/sax.js +1450 -1317
  3. package/package.json +16 -4
  4. package/AUTHORS +0 -10
  5. package/CONTRIBUTING.md +0 -14
  6. package/examples/big-not-pretty.xml +0 -8002
  7. package/examples/example.js +0 -29
  8. package/examples/get-products.js +0 -58
  9. package/examples/hello-world.js +0 -4
  10. package/examples/not-pretty.xml +0 -8
  11. package/examples/pretty-print.js +0 -74
  12. package/examples/shopping.xml +0 -2
  13. package/examples/strict.dtd +0 -870
  14. package/examples/test.html +0 -15
  15. package/examples/test.xml +0 -1254
  16. package/test/attribute-name.js +0 -33
  17. package/test/attribute-no-space.js +0 -75
  18. package/test/bom.js +0 -44
  19. package/test/buffer-overrun.js +0 -26
  20. package/test/case.js +0 -50
  21. package/test/cdata-chunked.js +0 -11
  22. package/test/cdata-end-split.js +0 -15
  23. package/test/cdata-fake-end.js +0 -28
  24. package/test/cdata-multiple.js +0 -15
  25. package/test/cdata.js +0 -10
  26. package/test/cyrillic.js +0 -8
  27. package/test/duplicate-attribute.js +0 -13
  28. package/test/emoji.js +0 -12
  29. package/test/end_empty_stream.js +0 -5
  30. package/test/entities.js +0 -10
  31. package/test/entity-mega.js +0 -16
  32. package/test/flush.js +0 -13
  33. package/test/index.js +0 -86
  34. package/test/issue-23.js +0 -43
  35. package/test/issue-30.js +0 -24
  36. package/test/issue-35.js +0 -15
  37. package/test/issue-47.js +0 -12
  38. package/test/issue-49.js +0 -31
  39. package/test/issue-84.js +0 -13
  40. package/test/issue-86.js +0 -30
  41. package/test/parser-position.js +0 -28
  42. package/test/script-close-better.js +0 -12
  43. package/test/script.js +0 -12
  44. package/test/self-closing-child-strict.js +0 -44
  45. package/test/self-closing-child.js +0 -44
  46. package/test/self-closing-tag.js +0 -25
  47. package/test/stand-alone-comment.js +0 -11
  48. package/test/stray-ending.js +0 -17
  49. package/test/trailing-attribute-no-value.js +0 -10
  50. package/test/trailing-non-whitespace.js +0 -18
  51. package/test/unclosed-root.js +0 -11
  52. package/test/unquoted.js +0 -18
  53. package/test/utf8-split.js +0 -34
  54. package/test/xml_entities.js +0 -11
  55. package/test/xmlns-as-tag-name.js +0 -15
  56. package/test/xmlns-issue-41.js +0 -68
  57. package/test/xmlns-rebinding.js +0 -63
  58. package/test/xmlns-strict.js +0 -74
  59. package/test/xmlns-unbound-element.js +0 -33
  60. package/test/xmlns-unbound.js +0 -15
  61. package/test/xmlns-xml-default-ns.js +0 -31
  62. package/test/xmlns-xml-default-prefix-attribute.js +0 -36
  63. package/test/xmlns-xml-default-prefix.js +0 -21
  64. package/test/xmlns-xml-default-redefine.js +0 -41
@@ -1,36 +0,0 @@
1
- require(__dirname).test(
2
- { xml : "<root xml:lang='en'/>"
3
- , expect :
4
- [ [ "attribute"
5
- , { name: "xml:lang"
6
- , local: "lang"
7
- , prefix: "xml"
8
- , uri: "http://www.w3.org/XML/1998/namespace"
9
- , value: "en"
10
- }
11
- ]
12
- , [ "opentag"
13
- , { name: "root"
14
- , uri: ""
15
- , prefix: ""
16
- , local: "root"
17
- , attributes:
18
- { "xml:lang":
19
- { name: "xml:lang"
20
- , local: "lang"
21
- , prefix: "xml"
22
- , uri: "http://www.w3.org/XML/1998/namespace"
23
- , value: "en"
24
- }
25
- }
26
- , ns: {}
27
- , isSelfClosing: true
28
- }
29
- ]
30
- , ["closetag", "root"]
31
- ]
32
- , strict : true
33
- , opt : { xmlns: true }
34
- }
35
- )
36
-
@@ -1,21 +0,0 @@
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
- )
21
-
@@ -1,41 +0,0 @@
1
- require(__dirname).test(
2
- { xml : "<xml:root xmlns:xml='ERROR'/>"
3
- , expect :
4
- [ ["error"
5
- , "xml: prefix must be bound to http://www.w3.org/XML/1998/namespace\n"
6
- + "Actual: ERROR\n"
7
- + "Line: 0\nColumn: 27\nChar: '"
8
- ]
9
- , [ "attribute"
10
- , { name: "xmlns:xml"
11
- , local: "xml"
12
- , prefix: "xmlns"
13
- , uri: "http://www.w3.org/2000/xmlns/"
14
- , value: "ERROR"
15
- }
16
- ]
17
- , [ "opentag"
18
- , { name: "xml:root"
19
- , uri: "http://www.w3.org/XML/1998/namespace"
20
- , prefix: "xml"
21
- , local: "root"
22
- , attributes:
23
- { "xmlns:xml":
24
- { name: "xmlns:xml"
25
- , local: "xml"
26
- , prefix: "xmlns"
27
- , uri: "http://www.w3.org/2000/xmlns/"
28
- , value: "ERROR"
29
- }
30
- }
31
- , ns: {}
32
- , isSelfClosing: true
33
- }
34
- ]
35
- , ["closetag", "xml:root"]
36
- ]
37
- , strict : true
38
- , opt : { xmlns: true }
39
- }
40
- )
41
-