[jquery-dev] Re: jQuery("").get(0) is not a DOM Element in FF, but is in Safari. Is this a bug?

Sun, 17 May 2009 16:14:41 -0700

To be clear - Firefox is returning an <object/> element - the bug is that
doing typeof on an <object/> element returns function in jQuery (but it is,
in fact, not a function). It's just a silly bug in Firefox, everything still
works as you would expect it to.

--John


On Sat, May 16, 2009 at 12:46 PM, stephb...@googlemail.com <
stephb...@googlemail.com> wrote:

>
> According to FireBug, FireFox thinks objects and embeds are functions.
>
> typeof(jQuery("<object/>").get(0));  // Returns "function()" in FF,
> but "object" in Safari
>
> The same is true if you select an Object Element that is already in
> the DOM:
>
> typeof(jQuery("object").get(0));  // Returns "function()" in FF, but
> "object" in Safari
>
> And is also true of Embed Elements.
>
> It seems to me .get(0) should return the DOM Element, which happens in
> Safari.  Is this a bug in FF or jQuery? Should I file it?  It's making
> working with Quicktime difficult!
>
> Cheers,
> Stephen.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to