[whatwg] Menus, fallback, and backwards compatibility: ideas wanted

Ian Hickson ian at hixie.ch
Tue Dec 6 16:29:44 PST 2005

On Tue, 29 Nov 2005, Matthew Raymond wrote:
> Well, what I don't like about this scenario is that we end up with a lot 
> of different markup in <menu>:
> | <menu>
> |   <a/>
> |   <cmd/>
> |   <command/>
> |   <li/>
> |   <menulabel/>
> |   <menu label=""/>
> | </menu>

So the situation would be:

   <menu x="y">
    <li> Z </li>
    <li> Z </li>
    <li> Z </li>


   <menu x="y">

...where "Z" is one of the following:

   <input> [1]
   <select> <option> </select> [2]

[1] assuming type="" is one of radio, checkbox, button, submit, reset, 
    move-up, move-down, add, or remove.
[2] (optionally with a <button/>, <input/>, or <label/> element)

...and all other content is ignored (and could be used for fallback).

Not quite sure how to get the label for nested <menu> elements yet.

Also not quite sure how to make all this styleable, especially for the 
toolbar type of <menu>. Although... maybe with XBL2's xbl:pseudo="" stuff 
we can make use of that. Hmm.

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