Bug Tracker

Opened 6 years ago

Closed 6 years ago

#7144 closed bug (fixed)

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


"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 (3)

comment:1 Changed 6 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 6 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 6 years ago by john

  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to 1.4.2
Note: See TracTickets for help on using tickets.