You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In IE11, classList.toggledoes not take a second parameter, and the polyfill does not correct this. As an example, I created http://jsfiddle.net/4w949/64 , which contains the source code from yola/classlist-polyfill, along with a console.log(document.body.classList.toggle); below it.
In this case, [ native code ] is shown in the developer console in IE11.
Expected behavior
For comparison, I took the latest polyfill on MDN in the same fashion: http://jsfiddle.net/4w949/65 . Here, the console.log does not return [ native code ]; it (correctly) returns the implementation from the polyfill, which supports the second parameter.
The text was updated successfully, but these errors were encountered:
schreifels
changed the title
Polyfill does not replace classList in IE11
Polyfill does not replace classList.toggle in IE11
Aug 31, 2016
Unexpected behavior
In IE11,
classList.toggle
does not take a second parameter, and the polyfill does not correct this. As an example, I created http://jsfiddle.net/4w949/64 , which contains the source code from yola/classlist-polyfill, along with aconsole.log(document.body.classList.toggle);
below it.In this case,
[ native code ]
is shown in the developer console in IE11.Expected behavior
For comparison, I took the latest polyfill on MDN in the same fashion: http://jsfiddle.net/4w949/65 . Here, the
console.log
does not return[ native code ]
; it (correctly) returns the implementation from the polyfill, which supports the second parameter.The text was updated successfully, but these errors were encountered: