jQuery does not support :target. The only reason why it works in Firefox 3.5
is that it provides a native querySelectorAll method. We would have to have
an implementation that works in other browser (FF 3.0, IE 8, etc.) and we
don't have that right now. You're welcome to file a ticket asking for
:target.

--John


On Thu, Sep 24, 2009 at 2:41 PM, Jack Bates <jack.ba...@gmail.com> wrote:

>
> $(':target') works in Firefox 3.5, but not Firefox 3.0 and some other
> browsers,
>
> http://www.sfu.ca/~jdbates/tmp/qubit/200909231/#aaa<http://www.sfu.ca/%7Ejdbates/tmp/qubit/200909231/#aaa>
>
> ^ in Firefox 3.5, $(':target') selects just the element with id="aaa",
> so this element appears blue while the other appears red
>
> In Firefox 3.0 and some other browsers, $(':target') seems to select
> all elements? so they all appear blue
>
> $(location.hash) works in Firefox 3.5 and 3.0,
>
> http://www.sfu.ca/~jdbates/tmp/qubit/200909232/#aaa<http://www.sfu.ca/%7Ejdbates/tmp/qubit/200909232/#aaa>
>
> ^ in Firefox 3.5 and 3.0, $(location.hash) selects just the element
> with id="aaa", so this element appears blue while the other appears
> red
>
> Is the inconsistent behavior of $(':target') in Firefox 3.5 and 3.0 a
> bug in jQuery? May I open a ticket?

Reply via email to