UNPKG

309 BJavaScriptView Raw
1// https://github.com/isaacs/sax-js/issues/35
2require(__dirname).test
3 ( { xml : "<xml>&#Xd;&#X0d;\n"+
4 "</xml>"
5
6 , expect :
7 [ [ "opentag", { name: "xml", attributes: {} } ]
8 , [ "text", "\r\r\n" ]
9 , [ "closetag", "xml" ]
10 ]
11 , strict : true
12 , opt : {}
13 }
14 )
15