Side navigation
#6914 closed bug (worksforme)
Opened August 18, 2010 12:20AM UTC
Closed August 19, 2010 01:06AM UTC
addClass duplication bug in 1.4.2
Reported by: | twophayse | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.2 | |
Component: | manipulation | Version: | 1.4.2 |
Keywords: | addClass | Cc: | |
Blocked by: | Blocking: |
Description
In 1.4.2,
foo.addClass("disabled");
adds disabled even if it already exists. As a result, the DOM element becomes
<span class="disabled disabled">
and
foo.removeClass("disabled")
needs to be run more multiple times.
This is not an issue in 1.3.2.
Attachments (1)
Change History (1)
Changed August 19, 2010 01:06AM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
I thought, "This can't be broken, since addClass is used everywhere. But then again, maybe we missed something obvious. That twophayse guy must have done his homework, so I'll look into it."
So I spent 5 minutes of my time creating a test case. And it works fine.