Use native ClassList functions when available
Reported by Douwe M. | February 10th, 2010 @ 03:07 PM | in 1.5.5 Release
I suggest you use the native HTML5 ClassList functions for adding, removing, checking for, and even toggling of classnames on HTML elements as described here, in browsers that already support it.
Comments and changes to this ticket
-
MadRabbit February 10th, 2010 @ 10:55 PM
- Tag changed from classlist, classname, element#addclass to core, dom, element
sounds like fun, will see what we can do about that
-
MadRabbit February 26th, 2010 @ 09:39 PM
- State changed from new to hold
http://www.dzone.com/links/native_html5_classlist_feature_in_firefo...
Hope you don't mind if I'll keep this ticket on hold for a while :)
-
Douwe M. February 26th, 2010 @ 09:41 PM
No problem ;-) Just ran across the feature and reported it, as usually native code is faster, but not in this case it appears
-
MadRabbit February 26th, 2010 @ 09:49 PM
Well it seems that the feature on it's early stage, think they will fix it in some upcoming releases, then we will add it to RightJS. Hopefully it will appear in WebKit too by then.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.