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

Sat, 16 May 2009 10:45:52 -0700

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