1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00
joplin/packages/fork-sax/test/attribute-unquoted.js
2020-11-05 16:58:23 +00:00

37 lines
719 B
JavaScript

require(__dirname).test({
expect: [
[ 'opentagstart', { name: 'ROOT', attributes: {}, ns: {} } ],
[ 'attribute', {
name: 'LENGTH',
value: '12345',
prefix: '',
local: 'LENGTH',
uri: ''
} ],
[ 'opentag', {
name: 'ROOT',
attributes: {
LENGTH: {
name: 'LENGTH',
value: '12345',
prefix: '',
local: 'LENGTH',
uri: ''
}
},
ns: {},
prefix: '',
local: 'ROOT',
uri: '',
isSelfClosing: false
} ],
[ 'closetag', 'ROOT' ],
[ 'end' ],
[ 'ready' ]
],
strict: false,
opt: {
xmlns: true
}
}).write('<root length=12').write('345></root>').close()