This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19388 - "Note: The value of complete can thus change while a script is executing." -- it would be nice if this was not the case. Is it needed for Web compat or was it just blindly copied from IE? It seems Chrome doesn't do it. http://software.hixie.ch/utilities/j
Summary: "Note: The value of complete can thus change while a script is executing." --...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-09 10:45 UTC by contributor
Modified: 2012-12-30 20:10 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2012-10-09 10:45:08 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html
Multipage: http://www.whatwg.org/C#dom-img-complete
Complete: http://www.whatwg.org/c#dom-img-complete

Comment:
"Note: The value of complete can thus change while a script is executing." --
it would be nice if this was not the case. Is it needed for Web compat or was
it just blindly copied from IE? It seems Chrome doesn't do it.
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1828

Posted from: 81.231.170.159 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.4; U; en) Presto/2.10.289 Version/12.02
Comment 2 Ian 'Hixie' Hickson 2012-10-10 02:11:37 UTC
Copied from Gecko, I believe. Opera does it too. Safari doesn't return true ever, in the test above, so I'm not sure WebKit-based browsers are necessarily a good place to go for checking interop.

bz, do you know if this is required for compat?
Comment 3 Simon Pieters 2012-10-10 07:55:36 UTC
Chrome returns true for me. Safari as well if I increase the timeouts.
Comment 4 Boris Zbarsky 2012-11-26 16:03:55 UTC
For web compat, the components of "complete" need to be able to change while script is running.  "complete" itself may not need to change, but it seems to be adding extra complexity to change it async somehow.  In particular, I suspect specifying it would be difficult.
Comment 5 Simon Pieters 2012-11-26 19:15:59 UTC
Can you elaborate on what components are needed for web compat?
Comment 6 Boris Zbarsky 2012-11-26 20:00:05 UTC
Primarily entering the "completely available" state.

But the other cases are also somewhat interesting.  If removeAttribute("src") happens on a broken image, should "complete" immediately start returning true as the spec suggests?  It's certainly easier to implement it that way....
Comment 7 Ian 'Hixie' Hickson 2012-12-27 00:25:19 UTC
zewt says IE9 does the same as WebKit, so we're 50:50.

I'm leaning towards leaving the spec as is unless Opera is planning on changing.