issue-84.js 450 B

12345678910111213
  1. // https://github.com/isaacs/sax-js/issues/49
  2. require(__dirname).test
  3. ( { xml : "<?has unbalanced \"quotes?><xml>body</xml>"
  4. , expect :
  5. [ [ "processinginstruction", { name: "has", body: "unbalanced \"quotes" } ],
  6. [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
  7. , [ "text", "body" ]
  8. , [ "closetag", "xml" ]
  9. ]
  10. , strict : false
  11. , opt : { lowercasetags: true, noscript: true }
  12. }
  13. )