Skip to content

Commit

Permalink
Merge pull request #40 from PatAtMacadamian/master
Browse files Browse the repository at this point in the history
add Support for missing SVGElement.classList in IE
  • Loading branch information
eligrey committed Sep 24, 2015
2 parents 979b040 + f93f131 commit e87db36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit e87db36

Please sign in to comment.