Closed
Bug 282352
Opened 19 years ago
Closed 19 years ago
When loading an image by setting a node's innerHTML, the status bar gets stuck on "Waiting for [host]..."
Categories
(Core :: DOM: Navigation, defect)
Core
DOM: Navigation
Tracking
()
RESOLVED
DUPLICATE
of bug 247002
People
(Reporter: jhurshman, Assigned: adamlock)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 When setting a node's innerHTML to a string containing an IMG tag whose src has not yet been loaded, the status bar will continue to display "Waiting for [image file host]..." (or "Transferring data from [image file host]...") even after the image is loaded and displayed. This will not occur if the image file in question has already been loaded on the page, either as an IMG tag, or preloaded as a JavaScript Image object. I have reproduced this in Firefox and Mozilla on Mac and on Windows. Reproducible: Always Steps to Reproduce: 1. Create an HTML page containing the following: <html> <head> <script type="text/javascript"> function load() { var div = document.createElement("DIV"); div.innerHTML = '<img src="add.gif" />'; // Use whatever image URL you like. document.body.appendChild(div); } </script> </head> <body onload="load()"> OK </body> </html> 2. Load this page in the browser Actual Results: The image loads and displays below the "OK" text, but the status bar continues to show "Waiting for [host]..." Expected Results: After the image loads, the status bar should show "Done".
Comment 1•19 years ago
|
||
*** This bug has been marked as a duplicate of 247002 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•