14 lines
450 B
JavaScript
14 lines
450 B
JavaScript
|
// https://github.com/isaacs/sax-js/issues/49
|
||
|
require(__dirname).test
|
||
|
( { xml : "<?has unbalanced \"quotes?><xml>body</xml>"
|
||
|
, expect :
|
||
|
[ [ "processinginstruction", { name: "has", body: "unbalanced \"quotes" } ],
|
||
|
[ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
|
||
|
, [ "text", "body" ]
|
||
|
, [ "closetag", "xml" ]
|
||
|
]
|
||
|
, strict : false
|
||
|
, opt : { lowercasetags: true, noscript: true }
|
||
|
}
|
||
|
)
|