mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
12 lines
398 B
JavaScript
12 lines
398 B
JavaScript
// https://github.com/isaacs/sax-js/issues/47
|
|
require(__dirname).test({
|
|
xml: '<a href="query.svc?x=1&y=2&z=3"/>',
|
|
expect: [
|
|
[ 'opentagstart', { name: 'A', attributes: {} } ],
|
|
[ 'attribute', { name: 'HREF', value: 'query.svc?x=1&y=2&z=3' } ],
|
|
[ 'opentag', { name: 'A', attributes: { HREF: 'query.svc?x=1&y=2&z=3' }, isSelfClosing: true } ],
|
|
[ 'closetag', 'A' ]
|
|
],
|
|
opt: {}
|
|
})
|