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

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 final task queued by the networking task source for the fetching of 
> the image resource has not yet been processed. Otherwise, the attribute 
> must return false." [1]
> 
> This reads to me as if a "new Image()" should have complete=false
> 
> No browser currently does this AFAIK.

On Fri, 9 Jul 2010, Diego Perini wrote:
>
> 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.

I've updated the spec to have complete return true if the src is the empty 
string.

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

Received on Tuesday, 10 August 2010 16:23:09 UTC