W3C home > Mailing lists > Public > www-style@w3.org > September 2004

Re: :accesskey

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Sat, 04 Sep 2004 11:05:48 +1000
Message-ID: <413914EC.5040001@iinet.net.au>
To: dhtmlkit@dhtmlkitchen.com
CC: www-style <www-style@w3.org>

dhtmlkit@dhtmlkitchen.com wrote:
> I just thought this would be a useful idea.
> 
> a.tab:accesskey {
>     text-decoration: underline;
> }
> 
> 
> <a href="#content3" accesskey="d" tabindex="3"
> 			  id="tab3" class="tab">Download</a>

How do you identify which letter is the access key?  First you have to 
figure out which attribute, or whatever indicates the access key to use. 
  That could probably be defined to be specific the the markup language, 
or there could be a css property that indicates it. eg.

a, area, etc { accesskey: attr(accesskey); }
:accesskey { text-decoration: underline; }

But then, how do you determine which occurence of the letter to apply 
the style to?  Is it possible to define an algorithm that could take a 
good guess at the most appropriate?  The first is not always the best. 
Are there any HTML implementations that actually do underline the access 
key that could be used for a reference?

-- 
Lachlan Hunt

http://www.lachy.id.au/
lachlan.hunt@lachy.id.au
Received on Saturday, 4 September 2004 01:06:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:32 GMT