HTML focusable areas feedback

Re-posting this mail from Matt (MSFT):



Hi all,



I've been investigating keyboard scrolling for scrollable regions within a page (i.e. overflow:scroll) which omit tabIndex, and in particular how they interact with focus.  The current browser behaviors are highly non-interoperable with one another.  For example:



-IE allows scrollable elements without tabIndex to be focused via mouse click, but they cannot be tabbed to.

-FF allows scrollable elements without tabIndex to be focused via tabbing to them, but not by clicking on them.

-Chrome does not allow scrollable elements without tabIndex to be focused via any means, but they can still be scrolled with keyboard if you click on them first.



I was looking at the definition of focusable areas [1] and the tabindex focus flag [2].  These specify that scrollable elements are focusable, but not suggested to have their tabindex focus flag set or be tab-accessible.  This would imply that IE's behavior is currently compliant with the spec -- the element is focusable but not reachable by tabbing.



That said, I don't think this is great behavior.  This means that users without a pointing device are generally unable to target and scroll these regions using only the keyboard.  I'd like to see scrollable regions added to the list of suggested elements which have the tabindex focus flag set by default to enable this scenario better.  "Draggable" elements are already included in the list in a similar spirit.  IE would be willing to make a change to this behavior if other browser vendors will also make this change.



Thanks,

-Matt



[1] http://www.w3.org/html/wg/drafts/html/master/editing.html#focusable-area

[2] http://www.w3.org/html/wg/drafts/html/master/editing.html#specially-focusable

Received on Friday, 11 July 2014 19:04:07 UTC