-
-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Description
I tested the polyfill in IE10 and IE11 (Win7 on a virtual machine) and the functions still have partial support of classList. Multiple parameters in the add() and remove() functions still don't work.
if (!("classList" in document.createElement("_"))
|| document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) {
The last condition !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))
evaluates to true, so the part for no classlist support will be executed.
The part for partial classlist supported browsers won't be executed in IE10/11.
I could "fix" the issue by changing || to && in line18/19:
if (!("classList" in document.createElement("_"))
&& document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) {
It seems to work for IE10/11, but don't know if is could be an issue for other browsers.
stevenvachon, tremby, glen-cheney and drgullin
Metadata
Metadata
Assignees
Labels
No labels