Plato on Github
Report Home
node_modules/sax/test/duplicate-attribute.js
Maintainability
63.44
Lines of code
13
Difficulty
3.93
Estimated Errors
0.09
Function weight
By Complexity
By SLOC
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 : {} } )