Bug Tracker

Modify

Ticket #9617 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

addClass stops working when similar class exists

Reported by: Motty Owned by:
Priority: high Milestone: 1.next
Component: attributes Version: git
Keywords: Cc:
Blocking: Blocked by:

Description

I was using the "edge" version on jsFiddle, which currently is jQuery v1.6.2pre ( http://code.jquery.com/jquery-git.js)

When I have a div with the two class names, e.g. "wrap wrap2". If I remove "wrap" and attempt to add it back, it fails.

This doesn't happen in v1.6.1.

Here is a demo:  http://jsfiddle.net/Mottie/9NXJM/

Change History

comment:1 Changed 2 years ago by dmethvin

  • Priority changed from undecided to high
  • Resolution set to fixed
  • Status changed from new to closed
  • Component changed from unfiled to attributes

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.