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,206
  • 5
  • 18
  • 22

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
  • 183,160
  • 33
  • 252
  • 304