W3C home > Mailing lists > Public > public-html@w3.org > February 2012

autofocus on links is missing?

From: Danny Ayers <danny.ayers@gmail.com>
Date: Sun, 19 Feb 2012 13:57:46 +0100
Message-ID: <CAM=Pv=Sq=mVE2mxAtU8d1L-wSKEOpaQ75Otu-EVm8VXUpYt+zA@mail.gmail.com>
To: HTML WG <public-html@w3.org>
I may well have overlooked something, but this appears to be an inconsistency.

When a page is loaded, the focus may be directed to a form control
using the autofocus attribute. But this attribute isn't available on
regular links, and I can't find a way of doing it that doesn't rely on

The use case I have is for slide shows (i.e. a prepared navigation
path) but I suspect this also has accessibility implications.
I've set up a demo of the behaviour using script at:

If there isn't an approach I've missed, two alternatives seem apparent:
1. allow the autofocus attribute on <a> elements
2. add autofocus behaviour to tabindex

1. would seem preferable as 2. would impact existing documents.



http://webbeep.it  - text to tones and back again
Received on Sunday, 19 February 2012 12:58:16 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:48 UTC