Skip to main content

Bug Tracker

Side navigation

#8088 closed enhancement (wontfix)

Opened January 29, 2011 01:27AM UTC

Closed January 29, 2011 06:26AM UTC

Last modified February 02, 2011 02:47AM UTC

removeClass(regExp) and hasClass(regExp)

Reported by: NV Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: git
Keywords: Cc:
Blocked by: Blocking:
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

Attachments (0)
Change History (6)

Changed January 29, 2011 02:26AM UTC by rwaldron comment:1

component: unfiledattributes
keywords: → needsreview
priority: undecidedlow
status: newopen

Changed January 29, 2011 04:09AM UTC by jitter comment:2

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.

Changed January 29, 2011 04:11AM UTC by rwaldron comment:3

It's definitely cool, but I agree - feature creep. I'm not sure the amount of code it introduces is worthwhile for the core.

Changed January 29, 2011 05:30AM UTC by danheberden comment:4

+1 on making this a plugin instead

Changed January 29, 2011 06:26AM UTC by addyosmani comment:5

keywords: needsreview
resolution: → wontfix
status: openclosed

+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.

Changed February 02, 2011 02:47AM UTC by jitter comment:6

For those interested in such functionality the reporter made a repo with this enhancement at https://github.com/NV/jquery-regexp-classes