14 lines
354 B
JavaScript
14 lines
354 B
JavaScript
require(__dirname).test
|
|
( { xml :
|
|
"<span id=\"hello\" id=\"there\"></span>"
|
|
, expect :
|
|
[ [ "attribute", { name: "ID", value: "hello" } ]
|
|
, [ "opentag", { name: "SPAN",
|
|
attributes: { ID: "hello" }, isSelfClosing: false } ]
|
|
, [ "closetag", "SPAN" ]
|
|
]
|
|
, strict : false
|
|
, opt : {}
|
|
}
|
|
)
|