我想做以下事情,但它在语义上正确吗?
<button> <div></div> <div></div> </button>
当前的 HTML5 草案表示这是不正确的。
http://www.w3.org/TR/2012/WD-html5-20120329/the-button-element.html#the-button-element说一个<button>必须仅包含短语内容。短语内容定义为包括<span>但不是<div>.
<button>
<span>
<div>