Closed Greld closed 7 years ago
Are you still supporting browsers which doesn't have classList?
classList is not supported in IE11 and older for SVG elements. http://caniuse.com/#search=classList
Are you still supporting browsers which doesn't have classList?
IE9, baby ;-)
classList is not supported in IE11 and older for SVG elements.
This is a multi-polyfill. Includes:
classList
for IE8/9;DOMTokenList
on SVGElement.prototype
for IE10/11;DOMTokenList.prototype.{add,remove}
with multiple arguments for browsers that support only one;DOMTokenList.prototype.toggle
with optional second argument for browsers that support only one.className on SVG elements returns SVGAnimatedString object, but we expect a string value. To get a string every time, we can use getAttribute instead.
This has to be fixed here: https://github.com/seznam/JAK/blob/master/lib/polyfills/classList.js
The resulting jak.js
is a result of running make
in the project directory.
It should be ok now.
Thanks!
className on SVG elements returns SVGAnimatedString object, but we expect a string value. To get a string every time, we can use getAttribute instead.