Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jan 2014 at 14:58 UTC
Updated:
29 Jul 2014 at 23:15 UTC
Jump to comment: Most recent
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.