aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/issue-47.js
blob: 661584ab1a35fca83cdd5a003e596489a4235fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// https://github.com/isaacs/sax-js/issues/47
require(__dirname).test
  ( { xml : '<a href="query.svc?x=1&y=2&z=3"/>'
    , expect : [
        [ "attribute", { name:'HREF', value:"query.svc?x=1&y=2&z=3"} ],
        [ "opentag", { name: "A", attributes: { HREF:"query.svc?x=1&y=2&z=3"}, isSelfClosing: true } ],
        [ "closetag", "A" ]
      ]
    , opt : {}
    }
  )