[Greasemonkey] GM 0.6.3 and new Image()
Aaron Boodman
zboogs at gmail.com
Sun Dec 4 22:33:27 EST 2005
No difference whatsoever.
On 12/4/05, John Plsek <jplsek at iinet.net.au> wrote:
> Johan Sundström wrote:
>
> >>the line in the script causing the failure
> >>
> >>var img=new Image();
> >>
> >>change to var img=document.createElement("IMG");
> >>
> >>all good. Any reason for this?
> >>
> >>
> >
> >Educated guess: no XPCNativeWrapper is installed for
> >the Image constructor, hence breaking anything that
> >relies on instantiating new Image objects this way.
> >
> >--
> > / Johan Sundström, http://ecmanaut.blogspot.com/
> >_______________________________________________
> >Greasemonkey mailing list
> >Greasemonkey at mozdev.org
> >http://mozdev.org/mailman/listinfo/greasemonkey
> >
> >
> >
> Is there any REAL difference between
>
> new Image()
>
> and,
>
> document.createElement("IMG")
>
> I'm not sure why I was using the former, I guess I was under the
> impression that it was a "lighter weight" object ... if that makes sense
>
> John
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
More information about the Greasemonkey
mailing list