Element inside button does not fire click event in Firefox

前端 未结 1 1861
-上瘾入骨i
-上瘾入骨i 2021-01-20 05:07

This fiddle works in Chrome, but not Firefox. Anyone know why?

Here is the markup:

相关标签:
1条回答
  • 2021-01-20 05:36

    This is by definition, see 4.10.8 The button element

    Content model:
    Phrasing content, but there must be no interactive content descendant.

    0 讨论(0)
提交回复
热议问题