Closed
Bug 177552
Opened 22 years ago
Closed 22 years ago
Setting image.src via Javascript doesn't reload image
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 176926
People
(Reporter: shakahshakah, Assigned: jst)
Details
Attachments
(1 file)
726 bytes,
text/html
|
Details |
In Build ID 2002102704, setting image.src via Javascript doesn't reload the image. Works in previous versions of Mozilla (don't know exactly when it broke, but it seems like sometime in October) and in IE. Will attach sample HTML file that demonstrates the problem, but in a nutshell the assignment in the following Javascript block has no effect: <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript1.2"> <!-- function doImageSwitch() { alert(document.getElementById("the_image").src) ; document.getElementById("the_image").src = "http://images.slashdot.org/topics/topicprogramming.gif" ; alert(document.getElementById("the_image").src) ; } //-->
Reporter | ||
Comment 1•22 years ago
|
||
The calls to alert() demonstrate that the .src attribute is not being set by the assignment.
Comment 2•22 years ago
|
||
*** This bug has been marked as a duplicate of 176926 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•