Add polyfill for IE9 support of classList. Avoid depending on jQuery for trivial class manipulation.
https://developer.mozilla.org/en/DOM/element.classList
http://caniuse.com/classlist
| Comment | File | Size | Author |
|---|---|---|---|
| core-js-classList-polyfill.patch | 8.12 KB | nod_ |
Comments
Comment #1
jessebeach commentedRather than loading another polyfill, why not just use jQuery? I was just reading an article by a jQuery core dev about this issue:
http://blog.methvin.com/2013/12/please-stop-jsperfcom-abuse.html
And classList doesn't support multiple class manipulations in IE10 and IE11 (says one of the commenters in the article above).
Comment #2
nod_Because the script doesn't require jQuery and it's the kind of script you could send anon users (if you decide to handle the active class in JS for anon).
No need for jQuery for this if there is no other requirements on it. Just read the post as well, doesn't apply when you don't use jQuery in the first place.
Comment #3
jessebeach commentedFair point.
Comment #4
wim leersMissing trailing period.
That's the only nitpick I could find.
Other than that, I think this is good to go.
Comment #5
nod_parent has been rolled back, put this in new patch.