Ticket #5766 (closed enhancement: patchwelcome)
jQuery.support.classList
| Reported by: | medz | Owned by: | rwaldron |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | attributes | Version: | 1.4.3 |
| Keywords: | classList addClass removeClass | Cc: | |
| Blocking: | #4705, #5087 | Blocked by: |
Description
Hi, I've tested out the use of Element.classList support in jQuery, which will be available in FF 3.6. Is this usefull for jQuery? I have implemented it for addClass / removeClass and hasClass. Probably should implement it for toggleClass as well.
Read more here: https://developer.mozilla.org/en/DOM/element.classList
Attachments
Change History
Changed 2 years ago by medz
-
attachment
jquery.classList.js
added
comment:6 Changed 16 months ago by rwaldron
- Priority changed from minor to low
- Component changed from support to attributes
- Milestone changed from 1.4 to 1.5
comment:7 Changed 16 months ago by snover
- Status changed from new to open
- Version changed from 1.4a2 to 1.4.3
comment:8 Changed 15 months ago by rwaldron
- Owner set to rwaldron
- Status changed from open to assigned
comment:11 Changed 10 months ago by john
- Status changed from assigned to closed
- Resolution set to patchwelcome
- Milestone set to 1.next
classList appears to be too slow right no). If classList gets faster, or if a better patch is proposed, we'll happily land it (as it stands, there's no point in having a support test for something that we don't use in core).
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

jQuery classList