3

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

Here is the markup:

<button>
    <span onclick="alert('yoo')">hey</span>
</button>
sh3nan1gans
  • 2,246
  • 5
  • 19
  • 23

1 Answers1

1

This is by definition, see 4.10.8 The button element

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

Gabriele Petrioli
  • 191,379
  • 34
  • 261
  • 317