aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/issue-84.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/sax/test/issue-84.js')
-rw-r--r--node_modules/sax/test/issue-84.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/sax/test/issue-84.js b/node_modules/sax/test/issue-84.js
new file mode 100644
index 000000000..0e7ee699a
--- /dev/null
+++ b/node_modules/sax/test/issue-84.js
@@ -0,0 +1,13 @@
+// https://github.com/isaacs/sax-js/issues/49
+require(__dirname).test
+ ( { xml : "<?has unbalanced \"quotes?><xml>body</xml>"
+ , expect :
+ [ [ "processinginstruction", { name: "has", body: "unbalanced \"quotes" } ],
+ [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
+ , [ "text", "body" ]
+ , [ "closetag", "xml" ]
+ ]
+ , strict : false
+ , opt : { lowercasetags: true, noscript: true }
+ }
+ )