classlist-polyfill
Advanced tools
Comparing version 1.0.2 to 1.0.3
# Changelog | ||
## 1.0.3 | ||
* Add support for missing SVGElement.classList in IE | ||
## 1.0.2 | ||
* Fix issue with `self` not being defined in CommonJS |
{ | ||
"name": "classlist-polyfill", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "MDN's ClassList Polyfill", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -5,2 +5,4 @@ # classlist-polyfill | ||
Eligrey's [classList.js](https://github.com/eligrey/classList.js) | ||
Usage: | ||
@@ -7,0 +9,0 @@ |
@@ -21,3 +21,5 @@ /* | ||
// Full polyfill for browsers with no classList support | ||
if (!("classList" in document.createElement("_"))) { | ||
// Including IE < Edge missing SVGElement.classList | ||
if (!("classList" in document.createElement("_")) | ||
|| document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg","g"))) { | ||
@@ -24,0 +26,0 @@ (function (view) { |
8940
213
18