Plato on Github
Report Home
node_modules/sax/test/stray-ending.js
Maintainability
62.65
Lines of code
14
Difficulty
5.13
Estimated Errors
0.10
Function weight
By Complexity
By SLOC
// stray ending tags should just be ignored in non-strict mode. // https://github.com/isaacs/sax-js/issues/32 require(__dirname).test ( { xml : "<a><b></c></b></a>" , expect : [ [ "opentag", { name: "A", attributes: {}, isSelfClosing: false } ] , [ "opentag", { name: "B", attributes: {}, isSelfClosing: false } ] , [ "text", "</c>" ] , [ "closetag", "B" ] , [ "closetag", "A" ] ] , strict : false , opt : {} } )