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)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 15005

People

(Reporter: marni894, Assigned: vidur)

References

()

Details

Attachments

(1 file)

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.
Assignee: mccabe → vidur
Component: Javascript Engine → DOM Level 0
Reassigning to the DOM component.
HTML DOM bugs are M11/P2 for Vidur.
QA Contact: cbegle → desale
update qa contact
Target Milestone: M11 → M12
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>
Moving off M12 radar for the time being. One or more might get back once I get a chance to really look at them.
Changing document.links[num].href works fine. The problem is that onload is not being called for each frame of the gif.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 15005 ***
Status: RESOLVED → VERIFIED
Verified with 12-14-09.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: