mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
18 lines
432 B
JavaScript
18 lines
432 B
JavaScript
// stray ending tags should just be ignored in non-strict mode.
|
|
// https://github.com/isaacs/sax-js/issues/32
|
|
require(__dirname).test
|
|
( { xml :
|
|
"<a><b></c></b></a>"
|
|
, expect :
|
|
[ [ "opentag", { name: "A", attributes: {} } ]
|
|
, [ "opentag", { name: "B", attributes: {} } ]
|
|
, [ "text", "</c>" ]
|
|
, [ "closetag", "B" ]
|
|
, [ "closetag", "A" ]
|
|
]
|
|
, strict : false
|
|
, opt : {}
|
|
}
|
|
)
|
|
|