Opened 14 years ago
Closed 12 years ago
#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: | |
Blocked by: | Blocking: |
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")
Note: See
TracTickets for help on using
tickets.
http://jsfiddle.net/dmethvin/RU6Wc/