diff options
Diffstat (limited to 'node_modules/sax/test/attribute-name.js')
-rw-r--r-- | node_modules/sax/test/attribute-name.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/node_modules/sax/test/attribute-name.js b/node_modules/sax/test/attribute-name.js new file mode 100644 index 000000000..9ebbe58e7 --- /dev/null +++ b/node_modules/sax/test/attribute-name.js @@ -0,0 +1,33 @@ +require(__dirname).test( + { xml: "<root length='12345'></root>" + , expect: [ + ["attribute", { + name: "length" + , value: "12345" + , prefix: "" + , local: "length" + , uri: "" + }] + , ["opentag", { + name: "root" + , prefix: "" + , local: "root" + , uri: "" + , attributes: { + length: { + name: "length" + , value: "12345" + , prefix: "" + , local: "length" + , uri: "" + } + } + , ns: {} + , isSelfClosing: false + }] + , ["closetag", "root"] + ] + , strict: true + , opt: { xmlns: true } + } +) |