W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2006

[whatwg] scripts that remove focus from links during document navigation

From: Hallvord R M Steen <hallvors@gmail.com>
Date: Wed, 20 Sep 2006 16:26:00 +0200
Message-ID: <dd4c8a40609200726r6ecbc518i7ce91bbef0495016@mail.gmail.com>
( Previously sent to public-webapi at w3.org list but Anne v K agrees it
probably belongs here.. )

Opera has a serious usability problem for keyboard- and device-users when
pages do the following:

<a href="" onfocus="this.blur()">

This coding is very common because IE adds a small outline border to
focused links. Authors who do not like this will blur links when they are
activated to avoid this cosmetic issue. (Mea culpa: I've done exactly this
myself in sites I coded as a newbie, for that very reason.)

In Opera, when keyboard navigation hits this link, focus is removed. Thus
the link can not be activated from the keyboard and navigation may have to
start from the top of the document again.

We need some prose in a spec that allows a user agent to ignore blur() for
accessibility reasons. This text has been suggested by Fabian Valkenburg:

'scripts must not alter focus-related issues in a way that hinder keyboard
operation, and user agents may override any such use of focus-related
scripting operations.'

I'm not sure what spec to put it in, and we've also discussed possible
collateral damage if sites use this in legitimate ways. Thoughts?


-- 
Hallvord R. M. Steen
Received on Wednesday, 20 September 2006 07:26:00 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:48 UTC