Closed
Bug 116680
Opened 23 years ago
Closed 23 years ago
link to an anchor in document.written document doesn't work
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: martin.honnen, Assigned: jst)
Details
Attachments
(2 files)
Mozilla (as NN4) has trouble to correctly link to an anchor in a
document.written document. If I have in frame/window with name windowName some
anchor
<a name="anchorName">anchor</a>
in a completely document.written document and then a link elsewhere
<a href="#anchorName" target="windowName">
then Mozilla interprets the link as relative to the url of the document which
created the other one. IE6 is smart enough to figure out that it is a
document.written document and it simply needs to scroll to the anchor in the
document.
I will attach a test case with a frameset which document.writes the content of
two frames, the upper one with anchors, the lower one with links to those anchors.
While in IE6 clicking a link nicely scrolls the upper frame to the anchor linked
to Mozilla on clicking a link loads the frameset into the upper frame. After
that links stop working (probably because there are now two frames with the same
name).
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
I attach a workaround which allows working around the bug with some JavaScript
that scrolls the frame window instead of letting the browser execute the link.
Comment 3•23 years ago
|
||
please check with newest build, since it's working for me...
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•