1 | // https://github.com/isaacs/sax-js/issues/33
|
2 | require(__dirname).test
|
3 | ( { xml : "<xml>\n"+
|
4 | "<!-- \n"+
|
5 | " comment with a single dash- in it\n"+
|
6 | "-->\n"+
|
7 | "<data/>\n"+
|
8 | "</xml>"
|
9 |
|
10 | , expect :
|
11 | [ [ "opentag", { name: "xml", attributes: {} } ]
|
12 | , [ "text", "\n" ]
|
13 | , [ "comment", " \n comment with a single dash- in it\n" ]
|
14 | , [ "text", "\n" ]
|
15 | , [ "opentag", { name: "data", attributes: {} } ]
|
16 | , [ "closetag", "data" ]
|
17 | , [ "text", "\n" ]
|
18 | , [ "closetag", "xml" ]
|
19 | ]
|
20 | , strict : true
|
21 | , opt : {}
|
22 | }
|
23 | )
|
24 |
|