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 2e61f64 commit 876aee8Copy full SHA for 876aee8
tests/unit/svg.js
@@ -148,7 +148,8 @@ define([
148
var svgs = spriteContainer.querySelectorAll("symbol");
149
assert.strictEqual(svgs.length, 1, "Icon with empty viewBox was loaded");
150
var viewBoxAttr = svgs[0].getAttribute("viewBox");
151
- assert.strictEqual(viewBoxAttr, "", "Icon with empty viewBox gets an empty viewBox attribute in the sprite");
+ // use notOk because IE insist to set viewBoxAttr to null while other browsers return ""
152
+ assert.notOk(viewBoxAttr, "Icon with empty viewBox gets an empty viewBox attribute in the sprite");
153
}));
154
},
155
"Loading an icon with a lowercase viewbox": function () {
0 commit comments