Opened 10 years ago
Closed 10 years ago
#13397 closed bug (notabug)
parentsUntil('#outer').add('#outer') does not do the RightThing™
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
obj.parentsUntil('#outer').add('#outer') unexpectedly yields elements in outer-to-inner order, differently from what parentsUntil() alone does.
See this fiddle: http://jsfiddle.net/BKW2d/5/
Note: See
TracTickets for help on using
tickets.
Yes, as soon as you start manipulating the reversed set it will go back to document order, since all other methods are supposed to return elements in document order.