Code sample:
<a href="//google.com/"><button>Click me</button></a>
Why?
I want buttons. But I also want it so that it behaves like a link. This means when I middle-mouse-click it, it opens in a new tab. When I shift-click it, it opens in a new window. When I ctrl-click, it opens in a new tab. When I click with no modifiers, it opens in the current tab.
This is to be done without frameworks.
Styling a link to look like a button is not acceptable, because "looking like a button" is browser- and device-specific.
So what?
As far as I can test right now, it seems to work consistently well. What is the state of browser support for this behaviour, including mobile browsers? In what ways do non-supporting browsers mess it up, eg. by moving the button outside of the link in the DOM?