It works on Firefox 3.6.13 from Windows by the way.
The command element is meant to encapsulate something that you can do. It can be rendered within a menu (since a menu presents items you can invoke).
The idea
It provides an abstraction layer between UI and commands, so that you can make multiple UI elements refer to the same command. This gives you the flexibility of having one command element, rendered in a menu, that is also invoked via a URL in the middle of the page as well as a button at the bottom of the page. Disabling the command disables all access paths (url/button/menu) to the action behind the command.
Where we are at - as of 26 Jan 2010
There is currently very scarce information as to how linking it to multiple elements will actually work (since browsers have only just started implementing it!) but that is one of its intentions.
At the present moment, the only documented usage is to provide a semantically unique tag to specify (without using <input>
or <button>
elements) that it is a command
within a <menu>
, thereby allowing "real" menu rendering by the browser (when implemented).
<command>
actually doesn't use its innerText/HTML. It's a self closing tag with its label in a n attribute:<command label="Click" />
(which makes it very unbackwardcompatible, unfortunately). – Shluh