Hmm... I can't duplicate this. I somehow suspect that either:

1) You're using an old version of jQuery, try upgrading to jQuery 1.0.1:
http://jquery.com/src/jquery-1.0.1.js

or 2) Your document has an instance of class="a" above the actual div
that you want to select, making it select too much.

If the problem is still happening for you, could you provide a URL to
where its occurring? Thanks!

--John

> I have a node hierarchy like this:
> <div class="a">
>   <div></div>
>   <div></div>
> </div>
> $("div.a/div") will select (correctly) the two child divs while
> $(".a/div") selects three divs (also selects parent div).
> Is this a bug?

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to