duplicate-attribute.js 354 Bytes
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 : {}
    }
  )