Bug Tracker

Modify

Ticket #3973 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

Description

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

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

Change History

Changed 4 years ago by mrandall

Firebug screenshot 1.2.6 above, 1.3.1 below

comment:1 follow-up: ↓ 2 Changed 4 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 4 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 4 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 4 years ago by mrandall

Matas:

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

comment:5 Changed 4 years ago by matas

the ticket should be considered invalid/closed then.

comment:6 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.