1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/packages/fork-sax/test/xmlns-xml-default-prefix.js

32 lines
509 B
JavaScript
Raw Normal View History

2020-11-05 18:58:23 +02:00
require(__dirname).test({
xml: '<xml:root/>',
expect: [
[
'opentagstart',
{
name: 'xml:root',
attributes: {},
ns: {}
}
],
[
'opentag',
{
name: 'xml:root',
uri: 'http://www.w3.org/XML/1998/namespace',
prefix: 'xml',
local: 'root',
attributes: {},
ns: {},
isSelfClosing: true
}
],
[
'closetag',
'xml:root'
]
],
strict: true,
opt: { xmlns: true }
})