Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13397 closed bug (notabug)

parentsUntil('#outer').add('#outer') does not do the RightThing™

Reported by: rulatir@… 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/

Change History (1)

comment:1 Changed 7 years ago by dmethvin

Resolution: notabug
Status: newclosed

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.

Note: See TracTickets for help on using tickets.