From 6379aea0dc04843b4c1505dfa4e80c06fdc93f45 Mon Sep 17 00:00:00 2001 From: Patrick Denny Date: Wed, 13 May 2015 13:57:47 -0400 Subject: [PATCH 1/2] add Support for missing SVGElement.classList in IE --- classList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classList.js b/classList.js index b80a898..01c78c0 100644 --- a/classList.js +++ b/classList.js @@ -14,7 +14,9 @@ if ("document" in self) { // 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"))) { (function (view) { From f93f131d14e71f09819fb27ef4374c4988b95dff Mon Sep 17 00:00:00 2001 From: Patrick Denny Date: Tue, 2 Jun 2015 09:40:16 -0400 Subject: [PATCH 2/2] fixed typo --- classList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classList.js b/classList.js index 01c78c0..0693237 100644 --- a/classList.js +++ b/classList.js @@ -16,7 +16,7 @@ if ("document" in self) { // Full polyfill for browsers with no classList support // Including IE < Edge missing SVGElement.classList if (!("classList" in document.createElement("_")) - || document.createElementNS && !("classlist" in document.createElementNS("http://www.w3.org/2000/svg","g"))) { + || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg","g"))) { (function (view) {