Ticket #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: | |
| 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 3 years ago by addyosmani
- need changed from Review to Patch
- Priority changed from undecided to low
comment:2 Changed 3 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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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.