classList.js icon indicating copy to clipboard operation
classList.js copied to clipboard

SCRIPT5009: 'DOMTokenList' is undefined

Open JamesSwift opened this issue 8 years ago • 7 comments

I was trying out classList.js in IE11, in IE9 emulation mode. However I'm getting the following:

SCRIPT5009: 'DOMTokenList' is undefined
classList.js (232,3)

JamesSwift avatar Dec 07 '17 11:12 JamesSwift

Looks like a regression. This is on my radar and I will attempt to fix it if the new maintainers are busy.

eligrey avatar Dec 12 '17 00:12 eligrey

i have same issue here ie 'DOMTokenList' is undefined

drnkwati avatar Jan 18 '18 14:01 drnkwati

Same issue in IE9.

katesowles avatar Jan 24 '18 19:01 katesowles

@katesowles does it work with compat mode turned off?

eligrey avatar Jan 24 '18 19:01 eligrey

@eligrey Are you looking for something other than the following?:

  • Browser Mode : IE9
  • Document Mode : IE9 Standards

I'm using BrowserStack, and not terribly knowledgable about IE in general, so let me know if there's something else I'm missing that I can try.

katesowles avatar Jan 24 '18 19:01 katesowles

classList.js will need a few changes to fix this.

I'm pretty sure this regression was introduced when I first accepted a PR for detection and expansion of partial classList implementations

eligrey avatar Jan 25 '18 09:01 eligrey

Older versions that don't handle toggle()'s second argument or replace() should be fine. I'll look into fixing this when I get time, but I am very busy so you should consider writing a pull request.

eligrey avatar Jan 25 '18 09:01 eligrey