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

Andreas Kling andreas.kling at nokia.com
Thu Jul 8 14:27:41 PDT 2010


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. I've posted a patch to implement 
this behavior in WebKit here:

https://bugs.webkit.org/show_bug.cgi?id=41898

Does anyone have thoughts on this?
Anything that might break?
Reasons it's currently defaulting to true?

-Kling

[1] http://www.whatwg.org/specs/web-apps/current-work/#dom-img-complete



More information about the whatwg mailing list