RESOLVED INVALID 41898
HTMLImageElement's "complete" attribute should be false for empty images
https://bugs.webkit.org/show_bug.cgi?id=41898
Summary HTMLImageElement's "complete" attribute should be false for empty images
Andreas Kling
Reported 2010-07-08 13:41:16 PDT
Quoth HTML5: "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." This change will fix one in-tree layout test: - canvas/philip/tests/2d.pattern.image.incomplete.html Spec link: http://www.whatwg.org/specs/web-apps/current-work/#dom-img-complete
Attachments
Proposed patch (8.03 KB, patch)
2010-07-08 13:57 PDT, Andreas Kling
no flags
Andreas Kling
Comment 1 2010-07-08 13:57:30 PDT
Created attachment 60951 [details] Proposed patch
Darin Adler
Comment 2 2010-07-08 14:08:58 PDT
Comment on attachment 60951 [details] Proposed patch I just tried this in Firefox: javascript:(new Image()).complete And I got the value "true". It's great to match the HTML5 specification, but I worry that we are moving from matching Firefox to not matching it. Can we discuss this on the WHATWG mailing list before making the change?
Andreas Kling
Comment 3 2010-07-08 14:18:56 PDT
(In reply to comment #2) > It's great to match the HTML5 specification, but I worry that we are moving from matching Firefox to not matching it. Can we discuss this on the WHATWG mailing list before making the change? Indeed, we would be the first to implement this behavior. I'll post something to [whatwg] in a sec.
Andreas Kling
Comment 4 2010-07-08 15:31:15 PDT
Adam Barth
Comment 5 2010-07-27 07:26:00 PDT
Comment on attachment 60951 [details] Proposed patch Looks like no one has replied to your message yet. This patch appears to be blocked on feedback from the working group. Please feel free to re-nominate for review when we're sure we want to do this. Is there more motivation for making this change beyond just the spec?
Andreas Kling
Comment 6 2010-07-27 07:32:11 PDT
(In reply to comment #5) > Is there more motivation for making this change beyond just the spec? No, that's pretty much it. Though I personally like that it makes it easy to create an image with complete=false for testing purposes.
Ian 'Hixie' Hickson
Comment 7 2010-08-10 16:28:15 PDT
Note: the spec has changed.
Darin Adler
Comment 8 2010-08-10 17:48:04 PDT
(In reply to comment #7) > Note: the spec has changed. Thanks for letting us know. I’ll close this.
Note You need to log in before you can comment on or make changes to this bug.