This is the entire html. I would expect it would return the HTML tag as it does with :first, but it errors on the second alert when using :eq(0)
<html> <head> <script language="javascript" src="jquery-1.3.2.js"></script> <script> $().ready(function() { alert($("*:has(BODY > *:first)").eq(0)[0].tagName); alert($("*:has(BODY > *:eq(0))").eq(0)[0].tagName); }); </script> </head> <body> <div /> </body> </html>