Bug Tracker

Opened 14 years ago

Closed 13 years ago

#3973 closed bug (invalid)

Selector now only finding 1 element with class

Reported by: mrandall Owned by:
Priority: critical Milestone: 1.3.2
Component: unfiled Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:


In 1.2.6, I've been successfully using $('div.module') to find all divs on a page with the ".module" class. However, since upgrading to 1.3.1, this now only finds 1 div (there are 10 divs on the page with this class).

Unfortunately I can not post the URL here, but I can provide a link if contacted privately.

Attachments (1)

jquery-1.3.1-selector_bug.jpg (26.8 KB) - added by mrandall 14 years ago.
Firebug screenshot 1.2.6 above, 1.3.1 below

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by mrandall

Firebug screenshot 1.2.6 above, 1.3.1 below

comment:1 Changed 14 years ago by johal

http://jsbin.com/ogibi shows that the the basic selector works just fine with 1.3.1

Please edit the sample (http://jsbin.com/ogibi/edit) to show the faulty behavior, and post the new jsbin url back here.

comment:2 in reply to:  1 Changed 14 years ago by johal

Replying to johal: A small warning: You should probably use the "edit" link before hitting the "view" link with any jsbin URL. Take a look at the javascript before actually running it, since it could contain malicious code. Don't click the output tab before reviewing the code, since that also evaluates the script.

comment:3 Changed 14 years ago by matas

seems similar to the case: http://groups.google.com/group/jquery-dev/browse_thread/thread/62cce9cee4eea5a5

possible cause could be the old version of jquery.validate plugin which overwrites push method. if the plugin is used, update it to 1.5.1.

comment:4 Changed 14 years ago by mrandall


That was the case. I was using version 1.4. Upgrading seems to have fixed all problems. Thanks!

comment:5 Changed 14 years ago by matas

the ticket should be considered invalid/closed then.

comment:6 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.