diff options
Diffstat (limited to 'cordova/node_modules/sax/test/unquoted.js')
| -rwxr-xr-x | cordova/node_modules/sax/test/unquoted.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cordova/node_modules/sax/test/unquoted.js b/cordova/node_modules/sax/test/unquoted.js new file mode 100755 index 0000000..79f1d0b --- /dev/null +++ b/cordova/node_modules/sax/test/unquoted.js @@ -0,0 +1,17 @@ +// unquoted attributes should be ok in non-strict mode +// https://github.com/isaacs/sax-js/issues/31 +require(__dirname).test + ( { xml : + "<span class=test hello=world></span>" + , expect : + [ [ "attribute", { name: "class", value: "test" } ] + , [ "attribute", { name: "hello", value: "world" } ] + , [ "opentag", { name: "SPAN", + attributes: { class: "test", hello: "world" } } ] + , [ "closetag", "SPAN" ] + ] + , strict : false + , opt : {} + } + ) + |
