Closed Bug 132455 Opened 24 years ago Closed 24 years ago

links to anchors jump back to top of page

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 130447

People

(Reporter: pie.fed, Assigned: joki)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+) Gecko/20020320 BuildID: 2002032003 When using the mouse to follow a link to an anchor (href="[page]#[anchorname]"), after very briefly displaying the page at that anchor, the pages display then jumps back to the top. Reproducible: Always Steps to Reproduce: 1. Go to the supplied URL http://java.sun.com/j2se/1.3/docs/api/java/lang/Class.html 2. Scroll down a bit to the "Method Summary" section. Click on a method name, such as "forName". Actual Results: The page flicks down to the appropriate anchor on the page, but then returns to the top. The URL bar now includes the anchor at the end. Expected Results: I would expect that the page would go to the appropriate anchor and stay there. This behavior is *not* exibited with the back/forward history buttons. If, after following the steps above, we continue: 3. Hit the back button. Notice the URL bar does now *not* include the anchor name. This is as expected. 4. Hit the forward button. Now Mozilla displays the page how I would have expected originally, with the specified anchor as close to the top of the display as possible. Then anchor name is displayed in the URL.
Hmmm... the #method_summary link seems to work as expected, but the actual anchors with specific methods seem to do what the reporter says. Maybe it's something about the perenthesis? Confirming and knocking severity down a notch.
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
duplicate of "Clicking on anchor goes to top of page, entering the URL directly doesn't" (just got fixed a few hours ago). *** This bug has been marked as a duplicate of 130447 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
VERIFIED Dupe
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.