1 | // unquoted attributes should be ok in non-strict mode
|
2 | // https://github.com/isaacs/sax-js/issues/31
|
3 | require(__dirname).test
|
4 | ( { xml :
|
5 | "<span class=test hello=world></span>"
|
6 | , expect :
|
7 | [ [ "attribute", { name: "CLASS", value: "test" } ]
|
8 | , [ "attribute", { name: "HELLO", value: "world" } ]
|
9 | , [ "opentag", { name: "SPAN",
|
10 | attributes: { CLASS: "test", HELLO: "world" } } ]
|
11 | , [ "closetag", "SPAN" ]
|
12 | ]
|
13 | , strict : false
|
14 | , opt : {}
|
15 | }
|
16 | )
|
17 |
|