On 11/2/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
Dave Methvin schrieb:
>
>> // error: f.apply is not a function - jquery.js (line 1166)
>> $(function(){
>>      $(document.createElement('embed'));
>> });
>
> Looks like a Firefox bug, I don't understand why it's still unfixed after so
> long:
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=268945
> https://bugzilla.mozilla.org/show_bug.cgi?id=296858
> https://bugzilla.mozilla.org/show_bug.cgi?id=346789
>
> Since the embed element is erroneously reported as a function, jQuery thinks
> $(document.createElement('embed')) is another call to .ready() with the
> embed element being the function to call. That makes ready method's f.apply
> die because FINALLY Firefox wakes up and notices that it isn't a function.

Maybe thats Mozilla's subtle way to push web developers to use object
instead.

;-)


-- Klaus

I don't think so look what i get from firebug:

>>> var foo = document.createElement('object')
>>> typeof foo
"function"

That's a bummer.

-Wil
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to