Closed
Bug 229578
Opened 21 years ago
Closed 21 years ago
Javascript's "document.images[i].complete == true" ALWAYS reports pics as completely loaded, even if they are not...
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: pepto, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6b) Gecko/20031207 Camino/0.7+
Build Identifier:
I just learned, by checking Moz 1.5, 1.6b and the latest nightly build of
Firebird, that Javascript's "document.images[i].complete == true" ALWAYS reports
pics as completely loaded, even if they are not...
Just check
http://selfhtml.teamone.de/javascript/objekte/anzeige/images_complete.htm and
click the "Grafiken checken" link... This will alert you that all images have
been "geladen" (which is the german word for "loaded"), but only one image
loaded successfully...
Reproducible: Always
Steps to Reproduce:
1. Visit the mentioned URL
2. Click on "Grafiken checken"
3. Read the alert-box
Actual Results:
The alert-box told me, that every image has been loaded successfully.
Expected Results:
The alert-box should have told me, that only image 2 has been loaded successfully.
Comment 1•21 years ago
|
||
This was done on purpose; see bug 190561. "complete" does not mean "successful"
it means "complete". Which they are -- we have finished loading them (and there
was nothing there, but that's a separate issue).
If you check "complete" before the load has finished, it will in fact report false.
In any case, this has nothing to do with the JS engine.
Assignee: general → general
Component: JavaScript Engine → DOM: Level 0
QA Contact: PhilSchwartau → ian
Comment 2•21 years ago
|
||
Invalid. If you really need to catch images not loading, that's what onerror
events are for.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•