1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/fork-sax/test/issue-47.js

12 lines
398 B
JavaScript
Raw Normal View History

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