[whatwg] [WA1] menus

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.


[1]<http://whatwg.org/specs/web-apps/current-work/#tutorial>
[2]<http://whatwg.org/specs/web-apps/current-work/#the-menulabel>


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Received on Sunday, 29 August 2004 02:33:13 UTC