Skip to main content

Bug Tracker

Side navigation

#13397 closed bug (notabug)

Opened February 06, 2013 06:30AM UTC

Closed February 06, 2013 01:25PM UTC

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

Reported by: rulatir@wp.pl 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/

Attachments (0)
Change History (1)

Changed February 06, 2013 01:25PM UTC by dmethvin comment:1

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.