[whatwg] [WA1] menus
Anne van Kesteren
fora at annevankesteren.nl
Sun Aug 29 02:33:13 PDT 2004
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/>
More information about the whatwg
mailing list