Skip to content

Instantly share code, notes, and snippets.

View ldthorne's full-sized avatar

Daniel Thorne ldthorne

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ldthorne on github.
  • I am ldthorne (https://keybase.io/ldthorne) on keybase.
  • I have a public key ASA1H2NczG54UiKmOIOTqwAobXGjaw1TUS0yP7-BG4f2PQo

To claim this, I am signing this object:

@ldthorne
ldthorne / Safari autofill bug.html
Created April 5, 2017 19:31
On safari 10.0.3, the first click event is consumed by Safari's autofill. Only on the second click is "Hello World" logged
<html>
<body>
<form>
<input name="email" />
<input name="name" />
</form>
<script>
document.querySelector('input[name="email"]').addEventListener('click', function(event) {
console.log('Hello World');
});