Ticket #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: | ||
| 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
Change History
Changed 4 years ago by mrandall
-
attachment
jquery-1.3.1-selector_bug.jpg
added
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Firebug screenshot 1.2.6 above, 1.3.1 below