[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 15:29:08 -0700

Browsers behave very differently when handling an object element,
there is no solution that I know of. This thread might help:
http://groups.google.com/group/jquery-dev/browse_thread/thread/8fbbd73d142dad78/1adb4accd2cbe334

On May 16, 1:46 pm, "[email protected]"
<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to