aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/issue-84.js
blob: 0e7ee699abcd990c00623b7c473242e04844b85f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 }
    }
  )