Bug Tracker

Opened 15 years ago

Closed 15 years ago

#1167 closed bug (fixed)

.removeClass("") removes every class

Reported by: arrix Owned by:
Priority: major Milestone: 1.1.3
Component: core Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:

Description

Passing an empty string("") to .removeClass() will cause every class to be removed. $('#someid').removeClass(""); => all classes of #someid removed

Change History (2)

comment:1 Changed 15 years ago by brandon

The root of the problem seems to be in jQuery.className.has. You can also find a similar error using the is method with a blank string. It will always be true.

comment:2 in reply to:  1 Changed 15 years ago by brandon

Resolution: fixed
Status: newclosed

Replying to brandon:

The root of the problem seems to be in jQuery.className.has. You can also find a similar error using the is method with a blank string. It will always be true.

Just ignore my ramblings ... it appears that is a different issue all together. This issue is now fixed in Rev [1887]

Note: See TracTickets for help on using tickets.