Skip to content

Instantly share code, notes, and snippets.

@kezabelle
Last active February 22, 2017 09:24
Show Gist options
  • Save kezabelle/91dfc75820005321b7b95f2282640ba0 to your computer and use it in GitHub Desktop.
Save kezabelle/91dfc75820005321b7b95f2282640ba0 to your computer and use it in GitHub Desktop.
Issue with button:focus in OSX Firefox (see https://github.com/LeadDyno/intercooler-js/issues/115)

To run

  • cd to the directory the file is saved in
  • python3 -m http.server
  • navigation to ???:8000/formerror.html
  • Press next or prev
  • Check the params sent with the Intercooler intercepted request.

In OSX Chrome

ic-request=true current=4 next=5 ic-id=1 ic-current-url=/formerror.html _method=POST

In OSX Firefox

ic-request=true current=4 ic-id=1 ic-current-url=/formerror.html _method=POST

<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://intercoolerreleases-leaddynocom.netdna-ssl.com/intercooler-1.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(document).on('beforeSend.ic', function() {
console.log(arguments);
})
});
</script>
</head>
<body>
<form action="" method="POST" accept-charset="utf-8" ic-post-to="/test">
<button name="previous" value="3">prev</button>
<input name="current" type="number" value="4">
<button name="next" value="5">next</button>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment