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: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.0
Keywords: Cc:
Blocked by: Blocking:

obj.parentsUntil('#outer').add('#outer') unexpectedly yields elements in outer-to-inner order, differently from what parentsUntil() alone does.

See this fiddle:

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.