$("div div:eq(n)") vs $("div div").eq(n)

$("div div:eq(n)") vs $("div div").eq(n)


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