We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012ab1f commit c61626fCopy full SHA for c61626f
test/jqLiteSpec.js
@@ -386,6 +386,18 @@ describe('jqLite', function() {
386
selected.removeData('prop2');
387
});
388
389
+ it('should add and remove data on SVGs', function() {
390
+ var svg = jqLite('<svg><rect></rect></svg>');
391
+
392
+ svg.data('svg-level', 1);
393
+ expect(svg.data('svg-level')).toBe(1);
394
395
+ svg.children().data('rect-level', 2);
396
+ expect(svg.children().data('rect-level')).toBe(2);
397
398
+ svg.remove();
399
+ });
400
401
402
it('should not add to the cache if the node is a comment or text node', function() {
403
var calcCacheSize = function() {
0 commit comments