Skip to main content

Bug Tracker

Side navigation

#5994 closed bug (duplicate)

Opened January 31, 2010 02:30AM UTC

Closed January 27, 2011 10:07PM UTC

Last modified January 27, 2011 10:07PM UTC

prevAll and parents return in reverse document order

Reported by: john Owned by:
Priority: high Milestone: 1.5
Component: core Version: 1.4
Keywords: Cc:
Blocked by: Blocking:
Description

The return order should be brought inline with the all the other jQuery methods.

http://forum.jquery.com/topic/revert-to-old-fn-add-behaviour-but-provide-a-fn-sort

Attachments (0)
Change History (5)

Changed June 16, 2010 10:50AM UTC by Zero Grav comment:1

The order seems to differ when using Internet Explorer 7. IE7 uses eq(0) to locate the object the furthest away while other browsers show the object the nearest to your original object.

Changed October 19, 2010 06:50AM UTC by snover comment:2

milestone: 1.4.41.5
priority: majorhigh
status: newopen

Changed December 24, 2010 02:30AM UTC by dmethvin comment:3

We've documented that "the elements are returned in order from the closest parent to the outer ones" so making this change could break a lot of code.

Since other operations may re-sort the collection we can't guarantee that the reversed order is preserved on a chain.

Changed January 27, 2011 10:07PM UTC by jitter comment:4

resolution: → duplicate
status: openclosed
version: 1.4.11.4

You said it yourself. Wontfix.

Changed January 27, 2011 10:07PM UTC by jitter comment:5

Duplicate of #6178.