Unable to tab to <link> elements

NEW
Unassigned

Status

()

Core
Layout
--
minor
13 years ago
12 years ago

People

(Reporter: bz, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Steps to reproduce:

1)  Load http://web.mit.edu/bzbarsky/www/index.shtml
2)  View menu (in Seamonkey), and select "Use Style > Debug Look"
3)  Try to tab to the links that say "Alternate stylesheet ....."

ACTUAL RESULTS: can't tab to them

EXPECTED RESULTS: can tab to them

Note that in all other ways Gecko treats these as equivalent to <a> -- they are
styled as links, clicking will follow them.  They just can't be focused.

The problem, of course, is that there is no tabindex property on <link>.  Sounds
like nsHTMLLinkElement should override IsFocusable....
also occurs in firefox. tested with 20050129-trunk build; go to View > Page
Style > Debug Look for step 2.
Created attachment 221932 [details] [diff] [review]
patch?

This seems to fix the case mentioned in comment 0, but I'm not sure that setting aTabIndex to 0 unconditionally is correct.
Assignee: aaronleventhal → nobody
Component: Keyboard: Navigation → Layout
QA Contact: bugzilla → layout
Severity: normal → minor
OS: Linux → All
Hardware: PC → All
It's not, imo.  See what nsHTMLAnchorElement::IsFocusable does -- we probably want to do something similar here.
You need to log in before you can comment on or make changes to this bug.