Re: [whatwg] Default value of complete attribute on new Image objects

2010-08-10 Thread Ian Hickson
On Thu, 8 Jul 2010, Andreas Kling wrote: The current HTML5 specification says: The IDL attribute complete must return true if the user agent has fetched the image specified in the src attribute, and it is in a supported image type (i.e. it was decoded without fatal errors), even if the

Re: [whatwg] Default value of complete attribute on new Image objects

2010-08-10 Thread Philip Taylor
On Wed, Aug 11, 2010 at 12:23 AM, Ian Hickson i...@hixie.ch wrote: I've updated the spec to have complete return true if the src is the empty string. Some canvas methods (drawImage, createPattern) are defined in terms of the complete attribute (If the image argument is an HTMLImageElement

Re: [whatwg] Default value of complete attribute on new Image objects

2010-08-10 Thread Jonas Sicking
On Tue, Aug 10, 2010 at 4:56 PM, Philip Taylor excors+wha...@gmail.com wrote: On Wed, Aug 11, 2010 at 12:23 AM, Ian Hickson i...@hixie.ch wrote: I've updated the spec to have complete return true if the src is the empty string. Some canvas methods (drawImage, createPattern) are defined in

Re: [whatwg] Default value of complete attribute on new Image objects

2010-08-10 Thread Philip Taylor
On Wed, Aug 11, 2010 at 1:06 AM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Aug 10, 2010 at 4:56 PM, Philip Taylor excors+wha...@gmail.com wrote: On Wed, Aug 11, 2010 at 12:23 AM, Ian Hickson i...@hixie.ch wrote: I've updated the spec to have complete return true if the src is the empty

Re: [whatwg] Default value of complete attribute on new Image objects

2010-07-09 Thread Diego Perini
Just to add that also by using DOM methods like: document.createElement('img').complete; // true the result is the same: complete is always true. Only tested on Firefox 3.5.10 and Opera 10.60. On FF after setting src= the complete property return true while on Opera it return false. On FF

Re: [whatwg] Default value of complete attribute on new Image objects

2010-07-09 Thread Boris Zbarsky
On 7/9/10 3:23 AM, Diego Perini wrote: On FF after setting src= the complete property return true while on Opera it return false. We special-case src= and don't do any loading; iirc the spec calls for that at this point. On FF after setting src=/nonexisting.gif the complete property

Re: [whatwg] Default value of complete attribute on new Image objects

2010-07-09 Thread Diego Perini
On Fri, Jul 9, 2010 at 5:46 PM, Boris Zbarsky bzbar...@mit.edu wrote: On 7/9/10 3:23 AM, Diego Perini wrote: On FF after setting src= the complete property return true while on Opera it return false. We special-case src= and don't do any loading; iirc the spec calls for that at this