aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/duplicate-attribute.js
blob: a21eb41919893bc88295263f2ba5cb14ca138587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require(__dirname).test
  ( { xml :
      "<span id=\"hello\" id=\"there\"></span>"
    , expect :
      [ [ "attribute", { name: "ID", value: "hello" } ]
      , [ "opentag", { name: "SPAN",
                       attributes: { ID: "hello" }, isSelfClosing: false } ]
      , [ "closetag", "SPAN" ]
      ]
    , strict : false
    , opt : {}
    }
  )