Closed
Bug 334030
Opened 19 years ago
Closed 14 years ago
<a href="#..."> does not focus target anchor element
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 308064
People
(Reporter: nopik, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
(deleted),
text/html
|
Details |
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
Comment 1•19 years ago
|
||
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
Comment 3•19 years ago
|
||
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060421 Minefield/3.0a1 - Build ID: 0000000000
Confirmed.
Testcase attached.
Updated•19 years ago
|
Updated•18 years ago
|
QA Contact: general → keyboard.navigation
Updated•6 years ago
|
Component: Keyboard: Navigation → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•