没有`menuitem`标签使用`menu`标签是否正确?

时间:2017-01-19 12:03:53

标签: html

为什么 caniuse 认为html标记menu在所有浏览器中得到了有效支持”(http://caniuse.com/#search=HTML4%20elements%20(well-supported%20subset)

根据Mozilla网站的说法,网络浏览器的支持相当差(https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu#Browser_compatibility)。

HTML menu标记是否只是感知if(if)是否包含嵌套的menuitem标记(即使根据caniuse也很少支持:http://caniuse.com/#feat=menu)?

感谢。

<p>The following html tag <i>menu</i> actually works in all web browser: is this (without nested <i>menuitem</i> tag) a "proper" use of the tag?</p>
<menu>
  <li>1</li>
  <li>2</li>
  <li><button>button</button></li>
</menu>

1 个答案:

答案 0 :(得分:0)

我在caniuse支持页面上得到了答案(谢谢 @mplungjan的建议):https://github.com/Fyrd/caniuse/issues/3121#issuecomment-274061971

我原始问题的第一个链接(&#34;菜单元素得到良好支持&#34;)是指HTML4。