W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2007

[whatwg] Looking at menus in HTML5...

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 7 Aug 2007 04:03:07 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.0708070400100.2885@dhalsim.dreamhost.com>
On Mon, 6 Aug 2007, Andrew Fedoniouk wrote:
> 
> Ian, this @label in menu is a bit ugly. Consider following...
> 
> Here is what I need:
> 
> <menu>
>  <li><b>F</b>irst option</li>
>  <li><b>S</b>econd option</li>
>  <li><b>T</b>hird option - submenu
>       <menu>
>            ....
>       </menu>
>  </li>
> </menu>
> 
> Pay attention on "Third option - submenu". It contains additional markup 
> and/or styling.

Assuming you mean for the boldened letters to represent the accelerator 
key, the idea is that you don't have to give them at all, the user agent 
will determine the optimal accelerators.


> How you would achieve this with the @label?

You don't need to bolden the letters, so it all Just Works.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 6 August 2007 21:03:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC