Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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 Apr 5, 2017
On safari 10.0.3, the first click event is consumed by Safari's autofill. Only on the second click is "Hello World" logged
View Safari autofill bug.html
<html>
<body>
<form>
<input name="email" />
<input name="name" />
</form>
<script>
document.querySelector('input[name="email"]').addEventListener('click', function(event) {
console.log('Hello World');
});