Modify ↓
Ticket #5016 (closed bug: worksforme)
parents() order different when selector added
| Reported by: | antix | Owned by: | john |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | selector | Version: | 1.3.2 |
| Keywords: | parents, selector | Cc: | |
| Blocking: | Blocked by: |
Description
When you look at the returned elements when using parents() you get the order as expected and documented http://docs.jquery.com/Traversing/parents#expr
but when you add a selector, the order reverses
var parentEls = $("b").parents("span,p")
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

http://jsfiddle.net/dmethvin/RU6Wc/