W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2004

[whatwg] [WA1] menus

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 12 Nov 2004 09:28:35 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0411120920380.8631@dhalsim.dreamhost.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 12 November 2004 01:28:35 UTC

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