index() always returns -1 on Firefox 3.7a5pre (minefield)

index() always returns -1 on Firefox 3.7a5pre (minefield)

I'm trying to find the index of an li within a ul.

Here is a gist with the code:  http://gist.github.com/414601

Every one of those console.logs returns -1 in Firefox 3.7a5pre, and some index number in IE8, Chrome, and FF3.6. I realize this may not be a jQuery bug per say, but Firefox recently rewrote their HTML parser... and this might be a repercussion of that.

Thanks, and if this is not a bug but rather I'm doing something wrong, please let me know! Thanks.