[whatwg] Should scrollbars move focus?

Etienne Levesque Guitard etiennelg at gmail.com
Fri Nov 2 06:21:49 PDT 2012


Wouldn't this be considered a browser-specific  implementation
bug/inconsistency then?

It seems that it's done because the scrollbars have to be in the DOM, and
therefore act as elements in the DOM tree (clicking in a random div for
instance does change focus, so the implementation is correct in the sense
of HTML). However, it doesn't look like this ever was looked at. It's just
the bi-product of the way the DOM is typically implemented.

Shouldn't it be fixed? Or rather, can it without breaking DOM functionality
in the browser?
On 2012-11-02 8:02 AM, "James Ross" <silver at warwickcompsoc.co.uk> wrote:

> > From: ojan at chromium.org
> > Date: Thu, 1 Nov 2012 10:45:07 -0700
> >
> > I didn't test nested scrollbars in Windows. I believe Elliott may have. I
> > did test them on Mac and Ubuntu. Clicking on nested scrollbars doesn't
> move
> > focus even if the scrollable element is focusable. On Ubuntu, clicking on
> > scrollbars doesn't even change window focus if the scrollbar is in a
> > different window.
>
> On Windows (tested on 7 using the Resource Monitor and Command Prompt
> properties windows), interacting with scrollbars will focus the window, but
> not the scrollable item itself (i.e. preserving the focus within the
> window).
>
> However, Internet Explorer (9, on Windows 7), will move the focus to the
> scrollable element (for all types in Robert's test page).
>
> James



More information about the whatwg mailing list