[whatwg] Looking at menus in HTML5...

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