Ticket #8088 (closed enhancement: wontfix)
removeClass(regExp) and hasClass(regExp)
| Reported by: | NV | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | attributes | Version: | git |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Usage: $("<div class='icon-32 icon-loading disabled'/>").removeClass(/icon-/);
https://github.com/jquery/jquery/pull/212
I posted a proposal on the forum but didn't get any feedback so far. http://forum.jquery.com/topic/removeclass-regexp-and-hasclass-regexp
Change History
comment:1 Changed 2 years ago by rwaldron
- Keywords needsreview added
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to attributes
comment:2 Changed 2 years ago by jitter
Sounds like feature creep to me.
This is probably better suited as a plugin as it can be easily monkey patched onto the methods in question.
comment:3 Changed 2 years ago by rwaldron
It's definitely cool, but I agree - feature creep. I'm not sure the amount of code it introduces is worthwhile for the core.
comment:5 Changed 2 years ago by addyosmani
- Keywords needsreview removed
- Status changed from open to closed
- Resolution set to wontfix
+1. With three prior agreements on this being better suited as a plugin, I'm closing ticket this due to feature creep. Please feel free to turn this into a plugin instead.
comment:6 Changed 2 years ago by jitter
For those interested in such functionality the reporter made a repo with this enhancement at https://github.com/NV/jquery-regexp-classes
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
