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 29093 - Elements that are focusable but not in the tab order should probably not have tabindex by default 0
Summary: Elements that are focusable but not in the tab order should probably not have...
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#dom-tab...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-27 16:27 UTC by contributor
Modified: 2018-02-04 09:22 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2015-08-27 16:27:26 UTC
Specification: https://html.spec.whatwg.org/multipage/interaction.html
Multipage: https://html.spec.whatwg.org/multipage/#dom-tabindex
Complete: https://html.spec.whatwg.org/#dom-tabindex
Referrer: 

Comment:
Elements that are focusable but not in the tab order should probably not have
tabindex by default 0

Posted from: 98.110.194.132
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:42.0) Gecko/20100101 Firefox/42.0
Comment 1 Boris Zbarsky 2015-08-27 16:28:07 UTC
In particular, on Mac a bunch of form controls are focusable (in that you can click on them and they get focus) but can't be tabbed to by default.
Comment 2 Anne 2016-03-24 17:49:24 UTC
The specification already allows for this right by defaulting according to platform conventions?
Comment 3 Domenic Denicola 2016-03-24 17:51:53 UTC
I don't think so. The spec pretty clearly states

> The tabIndex IDL attribute must reflect the value of the tabindex content attribute. Its default value is 0 for elements that are focusable and −1 for elements that are not focusable.

Boris is, I believe, asking that elements that are focusable but not in the tab order should have -1.
Comment 4 Boris Zbarsky 2016-03-24 17:57:22 UTC
That's correct.
Comment 5 Anne 2016-03-24 18:29:18 UTC
I see, thank you. https://github.com/whatwg/html/pull/938 should fix this.
Comment 6 Anne 2018-02-04 09:22:01 UTC
This is now https://github.com/whatwg/html/issues/1786.