JSON on click event test
This demonstrates a bug I don't understand. On Chrome this will log just the isTrusted property of the event and nothing else.
HTML
<button id="foo">
Test
</button>
JavaScript
document.getElementById('foo').onclick = (event) => {
console.log(JSON.stringify(event));
console.log(event);
};