W3C home > Mailing lists > Public > public-html@w3.org > October 2014

Re: Proposal to change documentation on tabindex to strongly discourage values greater 0

From: James Craig <jcraig@apple.com>
Date: Thu, 23 Oct 2014 00:04:48 -0700
Cc: public-html@w3.org, W3C WAI Protocols & Formats <public-pfwg@w3.org>
Message-Id: <63395184-319E-491A-A4A7-D769372451C6@apple.com>
To: Marco Zehe <mzehe@mozilla.com>

> On Oct 16, 2014, at 6:09 AM, Marco Zehe <mzehe@mozilla.com> wrote:
> [CC'ing Public PFWG list for info]
> Hello all!
> This is a proposal to declare tabIndex values > 0 invalid in the spec and the validator, or at least strongly advise against the use of positive integers values for this attribute.
> Rationale: The tabIndex attribute is used to make items focusable with the keyboard and programmatically. Currently, it takes three classes of values:
> 0: The element is made focusable, and it is integrated into the tab order at its location in the DOM.
> -1: The element is made focusable, but is skipped in the tab order, but can still take focus programmatically.
> > 0: The items are put in the tab order first, and their order is determined by the actual value. Only if all those elements have been traversed via tab, does the order in the DOM take effect.
> This third class of values has in the past lead to nothing but frustration among web developers and keyboard users, judging from feedback I get in my day to day accessibility work. Due to author error, which mostly stems from lack of awareness, tab order on many sites that use tabIndex improperly is erratic and not user-friendly.
Proper usage of the third class is rare I admit, but I've seen a few examples that would be difficult to implement without positive tabindex values. The one that comes to mind was using a generated tabindex on a "Google Maps" section of a non Google page, interspersing the tabindex of the active map flag in between the tabindex values in the list of search results. Since the Google maps markup was very inaccessible, this was the only logical way to skip over the extraneous maps tiles to jump directly from the search result, to the map, and then back to the search result.

I support "discouraging" use of position tabindex values w/o a good reason, but I would stop short of making them invalid.


Received on Thursday, 23 October 2014 07:05:19 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:46:11 UTC