Bug Tracker

Modify

Ticket #7144 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

find('> .foo, >.bar') returns only the first collection of elements (for the first class).

Reported by: gryzzly Owned by:
Priority: low Milestone: 1.4.3
Component: traversing Version: 1.4.2
Keywords: find traversing selectors Cc:
Blocking: Blocked by:

Description

"find('> .foo, >.bar')" returns only the first collection of elements (for the first class).

here's the use case with 1.4.3 rc:  http://jsfiddle.net/gryzzly/YjGLh/4/

here's the same code that works on 1.4.2:  http://jsfiddle.net/gryzzly/YjGLh/5/

I've ran into this problem with this code first:  http://jsfiddle.net/gryzzly/YjGLh

Change History

comment:1 Changed 4 years ago by addyosmani

  • need changed from Review to Patch
  • Priority changed from undecided to low

Tested and verified as an issue seen in the latest FireFox, Safari and Chrome (I've checked this with both jsFiddle and offline to ensure it's not a library conflict issue causing it as I see MooTools is enabled in the main view of your fiddle).

Flagging for further review and patch.

comment:2 Changed 4 years ago by gryzzly

I have first run into this problem on the production code, and it's only jquery is used there. Sorry for not excluding mootools from the usecase.

I have tested this in Firefox 4 (minefield rc), Firefox 3.6 and Chrome.

comment:3 Changed 4 years ago by john

  • Status changed from new to closed
  • Version set to 1.4.2
  • Resolution set to fixed

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.