Closed
Bug 14136
Opened 26 years ago
Closed 26 years ago
Changing document.links[num].href has no effect
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
M13
People
(Reporter: marni894, Assigned: vidur)
References
()
Details
Attachments
(1 file)
377 bytes,
text/html
|
Details |
In Mozilla 1999091518 the first frame of the gif is shown correctly. Then
function peka_om is called (which changes the link in Navigator 4.61) and the
image gets removed from the page. This is probably not the way it should work.
Updated•26 years ago
|
Assignee: mccabe → vidur
Component: Javascript Engine → DOM Level 0
Comment 1•26 years ago
|
||
Reassigning to the DOM component.
Comment 2•26 years ago
|
||
HTML DOM bugs are M11/P2 for Vidur.
Updated•26 years ago
|
Target Milestone: M11 → M12
Comment 4•26 years ago
|
||
Moving to M12.
Summary: Changing document.links[num].href removes image from page → Changing document.links[num].href has no effect
The image is no longer destroyed, but the link is not updated as it should.
Added a new and smaller testcase, pasted here in case the server is down. It
should be used with an animated gif with two images in it.
<html><body>
<script language="Javascript1.2">
picno=0;
links = [
'http://www.a.com',
'http://www.b.com'
];
linkno = document.links.length;
function peka_om()
{
if(links[picno])
document.links[linkno].href = links[picno];
picno = ++picno % 2;
}
</script>
<a href="http://www.c.com"><img src="bb.gif" onLoad="peka_om()"></a>
</body></html>
Assignee | ||
Comment 6•26 years ago
|
||
Moving off M12 radar for the time being. One or more might get back once I get a
chance to really look at them.
Comment 7•26 years ago
|
||
Changing document.links[num].href works fine.
The problem is that onload is not being called for each frame of the gif.
Comment 8•26 years ago
|
||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 10•26 years ago
|
||
Verified with 12-14-09.
You need to log in
before you can comment on or make changes to this bug.
Description
•