1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/packages/fork-sax/test/attribute-unquoted.js

37 lines
719 B
JavaScript
Raw Normal View History

2020-11-05 18:58:23 +02:00
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()