[whatwg] drawImage()

On Wed, 9 May 2007, Anne van Kesteren 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.

On Wed, 9 May 2007, Anne van Kesteren wrote:
> 
> 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.

On Wed, 9 May 2007, Maciej Stachowiak wrote:
> 
> 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

I've updated the spec. Now, if an HTMLImageElement is passed whose 
'complete' attribute is false, an INVALID_STATE_ERR exception must be 
raised.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 10 May 2007 15:08:03 UTC