What exactly is the HTML5 tag and what is the browser support

前端 未结 5 1573
有刺的猬
有刺的猬 2020-12-10 11:26

I\'ve read the HTML5 spec for and found the information on this element very vague.

I\'ve tried it out and found that it is not work

5条回答
  •  温柔的废话
    2020-12-10 11:37

    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 or

提交回复
热议问题