Done: http://dev.jquery.com/ticket/4641
On May 9, 10:03 pm, John Resig <[email protected]> wrote: > Hmm, yeah, I think that's probably a bug, as it stands. Could you file a > ticket? > > --John > > On Thu, May 7, 2009 at 11:34 PM, Jeffery To <[email protected]> wrote: > > > Hi, > > > Going through the test suite (with jQuery 1.3.2), I noticed that there > > is a selector test for "div div:eq(27)". Trying the query in Firebug > > gave me the test suite's expected result (div#hide), but if I try > > jQuery("div div").eq(27) it returns a different div. > > > Digging a little deeper, it turns out that when evaluating the :eq() > > selector (and I would assume other positional selectors), duplicates > > are not removed from the working list of elements before evaluating. > > For jQuery("div div").eq(27), duplicates are removed in jQuery("div > > div") before calling .eq(27), which is why it returns a different > > result. > > > My question is, is this a bug? To me it seems that jQuery("div div:eq > > (27)") and jQuery("div div").eq(27) should return the same result, and > > that jQuery("div div").eq(27) returns the correct result. > > > If this is more of a Sizzle question, please let me know and I'll post > > it in the Sizzle group. > > > Thanks, > > Jeff > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
