Skip to content

Commit e87db36

Browse files
committed
Merge pull request #40 from PatAtMacadamian/master
add Support for missing SVGElement.classList in IE
2 parents 979b040 + f93f131 commit e87db36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

classList.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
if ("document" in self) {
1515

1616
// Full polyfill for browsers with no classList support
17-
if (!("classList" in document.createElement("_"))) {
17+
// Including IE < Edge missing SVGElement.classList
18+
if (!("classList" in document.createElement("_"))
19+
|| document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg","g"))) {
1820

1921
(function (view) {
2022

0 commit comments

Comments
 (0)