We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffb47bb + c3f19b7 commit 6222dbaCopy full SHA for 6222dba
1 file changed
test/parse-tag.js
@@ -53,5 +53,22 @@ test('parseTag', function (t) {
53
children: []
54
});
55
56
+ tag = '<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-id="175">'
57
+
58
+ t.deepEqual(parseTag(tag), {
59
+ type: 'tag',
60
+ name: 'svg',
61
+ attrs: {
62
+ 'aria-hidden': 'true',
63
+ 'data-id': '175',
64
+ style: 'position: absolute; width: 0; height: 0; overflow: hidden;',
65
+ version: '1.1',
66
+ xmlns: 'http://www.w3.org/2000/svg',
67
+ 'xmlns:xlink': 'http://www.w3.org/1999/xlink'
68
+ },
69
+ voidElement: false,
70
+ children: []
71
+ }, 'should parse tags containing attributes with hyphens and/or colons');
72
73
t.end();
74
0 commit comments