You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-06 23:56:13 +02:00
All: Use Lerna to manage monorepo
This commit is contained in:
49
packages/fork-sax/test/xmlns-xml-default-prefix-attribute.js
Normal file
49
packages/fork-sax/test/xmlns-xml-default-prefix-attribute.js
Normal file
@ -0,0 +1,49 @@
|
||||
require(__dirname).test({
|
||||
xml: "<root xml:lang='en'/>",
|
||||
expect: [
|
||||
[
|
||||
'opentagstart',
|
||||
{
|
||||
name: 'root',
|
||||
attributes: {},
|
||||
ns: {}
|
||||
}
|
||||
],
|
||||
[
|
||||
'attribute',
|
||||
{
|
||||
name: 'xml:lang',
|
||||
local: 'lang',
|
||||
prefix: 'xml',
|
||||
uri: 'http://www.w3.org/XML/1998/namespace',
|
||||
value: 'en'
|
||||
}
|
||||
],
|
||||
[
|
||||
'opentag',
|
||||
{
|
||||
name: 'root',
|
||||
uri: '',
|
||||
prefix: '',
|
||||
local: 'root',
|
||||
attributes: {
|
||||
'xml:lang': {
|
||||
name: 'xml:lang',
|
||||
local: 'lang',
|
||||
prefix: 'xml',
|
||||
uri: 'http://www.w3.org/XML/1998/namespace',
|
||||
value: 'en'
|
||||
}
|
||||
},
|
||||
ns: {},
|
||||
isSelfClosing: true
|
||||
}
|
||||
],
|
||||
[
|
||||
'closetag',
|
||||
'root'
|
||||
]
|
||||
],
|
||||
strict: true,
|
||||
opt: { xmlns: true }
|
||||
})
|
Reference in New Issue
Block a user