[whatwg] [WA1] menus

Ian Hickson ian at hixie.ch
Fri Nov 12 01:28:35 PST 2004


On Sun, 29 Aug 2004, Anne van Kesteren wrote:
>
> Maybe the first example[1] can changed. Now MENU is the sibling of the A
> element and that is a strange construct since A is an inline element and MENU
> a block level element. Perhaps MENULABEL[2] can be used to wrap the A element
> in. From:
> 
> #  <menubar>
> #   <li>
> #    <a href="#file">File</a>
> #    <menu id="file">
> #     <li><button type="button" onclick="fnew()">New...</button></li>
> 
> To:
> 
>   <menubar>
>    <li>
>     <menulabel><a href="#file">File</a></menulabel>
>     <menu id="file">
>      <li><button type="button" onclick="fnew()">New...</button></li>
> 
> This would make it a lot better, from a structural point of view. It would
> also remain backwards compatible.

What's the (practical) difference? So long as we define the menu as being 
labelled by the previous element, the two cases above are equivalent.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list