[whatwg] Nested MENU elements

Matthew Raymond mattraymond at earthlink.net
Fri Jun 17 05:02:37 PDT 2005

Simon Pieters wrote:
> Will HTML5 allow nested MENU elements? HTML 4.01 Transitional doesn't allow 
> nested MENU elements for some reason.

    I can't find anything about MENU nesting in the HTML 4.01 
specification. Is that in an earlier specification?

> Current UAs treat the MENU element just like UL elements.

    Okay, that IS in the spec.[1]

> See test case [1]. It might be a good idea to make an 
> explicit note about this at the definition of the element.
> [1] http://zcorpan.1go.dk/test/nested-menu.html

    I support the nesting of <menu> elements for the purpose of having 
submenus. Though many zealots would object to submenus because it's 
considered poor UI, I believe there are often situations where submenus 
are difficult or impossible to avoid. Currently, there's nothing in WA1 
that would prevent nesting of <menu> elements, but there's nothing there 
to define how nested <menu> elements should be treated either. That 
needs to be fixed.

    Much of what we plan to do with menus is still up in the air, 
though. Feel free to contribute your own thoughts.

[1] http://www.w3.org/TR/html4/struct/lists.html#edef-MENU

More information about the whatwg mailing list