[whatwg] drawImage()

Maciej Stachowiak mjs at apple.com
Wed May 9 03:43:31 PDT 2007


On May 9, 2007, at 2:14 AM, Anne van Kesteren wrote:

> On Wed, 09 May 2007 11:10:22 +0200, Anne van Kesteren  
> <annevk at opera.com> wrote:
>> It would be nice if this method described things for image in  
>> terms of .complete. Although I've also heard people suggest they  
>> would like this method to be synchronous when HTMLImageElement is  
>> passed (Bjoern, iirc) so that you don't need the trickery involved  
>> to make sure it's already loaded.
>
> I expressed myself poorly. What I meant with synchronous is that  
> the method waits for the image to load. In any case, it would be  
> nice if the specification was a little more exact (or if people  
> think it already is: elaborate) on the subject.

Based on experience with synchronous XHR, I think we should avoid  
adding more synchronous networking operations. In addition, drawing a  
partially loaded image may be a desirable behavior in some cases

Regards,
Maciej




More information about the whatwg mailing list