This simple code
<button onclick="console.log(document.activeElement)">
console.log(document.activeElement)
</button>
logs <button>
in Chrome and Firefox, but Safari for some weird reason doesn't set focus on <button>
and logs <body>
What's wrong with Safari? My expectation is that click on button should make it focused.
Safari version: 14.1.1 (latest) on macOS 11.4