Skip to main content

Bug Tracker

Side navigation

#4641 closed bug (duplicate)

Opened May 10, 2009 07:28AM UTC

Closed November 19, 2010 02:47AM UTC

Last modified November 19, 2010 02:47AM UTC

Duplicates not removed before evaluating :eq(n)

Reported by: jeff_themovie Owned by: john
Priority: major Milestone:
Component: selector Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

The test suite has a selector test for "div div:eq(27)" but trying jQuery("div div").eq(27) in Firebug returns a different div.

I'd expect jQuery("div div:eq(27)") to return the same result as jQuery("div div").eq(27).

It seems that duplicates are not removed from the working list of elements before evaluating the :eq() selector (and I suspect other positional selectors as well, although I haven't tried those yet).

(The mailing list / discussion group thread is at http://groups.google.com/group/jquery-dev/browse_thread/thread/fc49c5bc6524e8aa )

Attachments (1)
  • testcase.html (1.6 KB) - added by jeff_themovie May 14, 2009 01:46AM UTC.

    :eq(n) test case

Change History (5)

Changed November 11, 2009 08:08PM UTC by john comment:1

component: unfilledselector
owner: → john

Changed November 19, 2010 02:37AM UTC by dmethvin comment:2

status: newopen

Changed November 19, 2010 02:39AM UTC by dmethvin comment:3

milestone: 1.4
version: 1.3.21.4.4

Changed November 19, 2010 02:47AM UTC by dmethvin comment:4

resolution: → duplicate
status: openclosed

Changed November 19, 2010 02:47AM UTC by dmethvin comment:5

Duplicate of #7556.