Opened 12 years ago
Closed 12 years ago
#6914 closed bug (worksforme)
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 (2)
comment:1 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Changed 12 years ago by
Attachment: | test-6914.html added |
---|
Note: See
TracTickets for help on using
tickets.
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.