This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23690 - link[href] should not be in a list of suggested elements that may have a tabindex focus flag (8.4.1)
Summary: link[href] should not be in a list of suggested elements that may have a tabi...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 13:57 UTC by Takeshi Kurosawa
Modified: 2013-11-18 23:14 UTC (History)
2 users (show)

See Also:


Attachments

Description Takeshi Kurosawa 2013-10-31 13:57:27 UTC
In "8.4.1 Sequential focus navigation and the tabindex attribute", there is a list of elements that may have a tabindex focus flag. And the list includes "link elements that have an href attribute". However I think this should be "area elements that have an href attribute".

http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#sequential-focus-navigation-and-the-tabindex-attribute

> Modulo platform conventions, it is suggested that for the following elements, the tabindex focus flag be set:
>
> snip
>
> - link elements that have an href attribute
>
> snip
>

Because link elements will not be rendered and they will not receive the focus usually.

On the other hand, area elements are expected to receive the focus.

In fact "8.4.2 Focus management" mentions "area" several times
http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#focus-management
Comment 1 Ian 'Hixie' Hickson 2013-10-31 19:19:03 UTC
No, it's intentional that this be <link> elements. They should be focusable if links can be focused and you make the <link> element visible with display:block, etc, in CSS.

<area> elements are a weird case because each <area> element can map to multiple focusable regions, so they are handled separately in 8.4.2.
Comment 2 Ian 'Hixie' Hickson 2013-11-18 23:14:46 UTC
Marking WORKSFORME per comment 1.