aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/issue-35.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/sax/test/issue-35.js')
-rw-r--r--node_modules/sax/test/issue-35.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/sax/test/issue-35.js b/node_modules/sax/test/issue-35.js
new file mode 100644
index 000000000..64d67b3f6
--- /dev/null
+++ b/node_modules/sax/test/issue-35.js
@@ -0,0 +1,15 @@
+// https://github.com/isaacs/sax-js/issues/35
+require(__dirname).test
+ ( { xml : "<xml>&#Xd;&#X0d;\n"+
+ "</xml>"
+
+ , expect :
+ [ [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
+ , [ "text", "\r\r\n" ]
+ , [ "closetag", "xml" ]
+ ]
+ , strict : true
+ , opt : {}
+ }
+ )
+