Closed Bug 334030 Opened 18 years ago Closed 14 years ago

<a href="#..."> does not focus target anchor element

Categories

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

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 308064

People

(Reporter: nopik, Assigned: MatsPalmgren_bugz)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.8.0.1) Gecko/20060320 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.8.0.1) Gecko/20060320 Firefox/1.5.0.1

<a href="#..."> should focus target anchor element.

Reproducible: Always

Steps to Reproduce:
1. Go to http://www.ztpnet.pl/~nopik/a006.html
2. Click on left AAA link

Actual Results:  
Focus is moved to right AAA link, but it is not drawn properly (TAB key works ok)

Expected Results:  
Focus should be drawn around destination anchor.

This was working in Mozilla 1.7.x.

The difference is here: http://lxr.mozilla.org/mozilla/source/layout/base/nsPresShell.cpp#4090
http://lxr.mozilla.org/mozilla1.7/source/layout/html/base/src/nsPresShell.cpp#4055

Adding MoveFocusToCaret() call fixes the problem.

PS. Also, the while() loop at http://lxr.mozilla.org/mozilla/source/layout/base/nsPresShell.cpp#4056 stops pref("layout.selectanchor"); from working
I don't recall if this is intentional or not. Someone will have to dig through the old bugs and see what we were doing.
Assignee: nobody → mats.palmgren
Component: General → Keyboard: Navigation
Product: Firefox → Core
Version: unspecified → 1.0 Branch
see bug 280154 comment 15
Version: 1.0 Branch → Trunk
Attached file Testcase
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060421 Minefield/3.0a1 - Build ID: 0000000000
Confirmed.
Testcase attached.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
QA Contact: general → keyboard.navigation
Any update on this bug ?
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: