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 -~----------~----~----~----~------~----~------~--~---