Closed Bug 6077 Opened 26 years ago Closed 25 years ago

always going to first of named anchors in relatively positioned DIV

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: dgfb, Assigned: joki)

References

()

Details

Attachments

(2 files)

* SUMMARY DIV's are used to form bordered rectangles as "pages". Links are meant to move user from one to another. An link inside "page1" does not jump to the named anchor inside "page2". However, a link inside "page1" does jump to the anchor above but outside of "page3" * STEPS TO REPRODUCE go to: http://missoula.bigsky.net/opus/booklets/docs/boxbugs.html or load code below. Click on links marked "go to page X" * VERSION USED I last checked this with a May 6 download of M5 Milestone full circle version * ADDITIONAL COMMENTS I mentioned this in the mozilla.qa.browser newsgroup last week, but I understand this is the better place to report it. More elaborate samples are available at: http://missoula.bigsky.net/opus/booklets/index.html ****************************** BEGIN CODE ************************ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html> <head> <title>Bugs with Boxes</title> <meta http-equiv="Content-Type" content="text/html; charset=x-user-defined"> <style TYPE="text/css" MEDIA="screen"> .pagina { position: relative; width: 400px; height: 300px; border-width: thick; border-style: groove; } </style> </head> <body> <div class=pagina> <a name="page1"></a> Page 1 <br> <a href="#page2">Go to Page 2</a> <br> <a href="#page3">Go to Page 3</a> </div> <a name="page2"></a> <div class=pagina> Page 2 <br> <a href="#page1">Go to Page 1</a> <br> <a href="#page3">Go to Page 3</a> </div> <div class=pagina> <a name="page3"></a> Page 3 <br> <a href="#page1">Go to Page 1</a> <br> <a href="#page2">Go to Page 2</a> </div> </body> </html> ****************************** End Code ************************
The problem is triggered by the relative positioning. (Is there some tutorial that says to use relative positioning for everything? I'm seeing this a lot lately.) In the example I'm about to attach (which is a slight variation of the URL, attached so it's stable), "Go to page 3" and "Go to page 4" always go to page 1, which is the first time there is an anchor within a relatively positioned div. Go to page 2, where the anchor is out of the relatively positioned div, always works.
Attached file Demonstration of bug (deleted) —
Summary: cannot jump from an HREF in one DIV to a NAME in another → always going to first of named anchors in relatively positioned DIV
Assignee: rickg → joki
I think you're the right guy for this; please let me know otherwise.
QA Contact: petersen → chrisd
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
WORKSFORME, build 1999120715 on Windows NT4.0 sp5.
Status: RESOLVED → VERIFIED
Using 12/6 build with David's testcase, verifying WORKSFORME.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: