duplicate-attribute.js 354 B

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