I am implementing a piece of UI where a whole element is clickable, as is a "button" within it.
Basically this (and no, I am not actually using inline event handlers):
<div onclick="alert('outer action')">
Maybe some text here
<button onclick="alert('inner action')">Action</button>
</div>
For better or worse, HTML doesn't allow nesting buttons. I'm not too happy about the outer element being a div, because it seems meaningless. I could slap a role="button" on it, but I wonder if there's a better solution at hand.