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

Matthew Raymond mattraymond at earthlink.net
Wed Dec 7 04:22:50 PST 2005

Ian Hickson wrote:
> On Thu, 1 Dec 2005, Matthew Raymond wrote:
>>| <menu>
>>|   <li command="cmd_in_head1">Menu Item 1</li>
>>|   ...
>>| </menu>
> That could work. It's an advanced feature though. (Anything involving 
> indirection is going to be harder for users; the more indirection, the 
> harder it is, IMHO. This is one reason <font> is easier than CSS.) I'd 
> expect use of the command="" attribute to be much rarer than just use of 
> <command> itself:
>    <menu>
>      <command .../>
>      <command .../>
>      <command .../>
>    </menu>
> (Falls back to a line break.)

   Doesn't the following do the same?

  <option label="1"/>
  <option label="2"/>
  <option label="3"/>

   We can just use <option> elements instead of <command> when we need
to hide menus. If we're going to support <select> elements as menu
fallback markup, <menu> will have to support <option> elements anyways.
This frees up <command> to be used specifically in the <head>.

More information about the whatwg mailing list