Looks like a bug to me. In this case it seems like doing just "li"
would be equivalent to what you want. Could you file it here?
http://dev.jquery.com/newticket
--John
On Mon, Feb 23, 2009 at 11:43 AM, Sjeiti wrote:
>
> I've build a recursive tree. Now I'm trying to get the number of list
> elements but I get weirds results:
> $("li").length = 10;
> $("body>ul li").length = 4;
> Is this right?.. or a bug...
> (1.2.6 works as expected)
>
>
> [code]
> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> http://www.w3.org/1999/xhtml";>
>
>>
>
> src="scripts/jquery-1.3.2.min.js">
> script>
>