Skip to content

Instantly share code, notes, and snippets.

@DavidAnson
Last active August 29, 2015 14:19
Show Gist options
  • Save DavidAnson/7a70587b6d73750b4121 to your computer and use it in GitHub Desktop.
Save DavidAnson/7a70587b6d73750b4121 to your computer and use it in GitHub Desktop.
Safari in iOS 8.3 crashes if the link is tapped when focus is in the text box
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="initial-scale=1, user-scalable=no"/>
<title>iOS 8.3 Safari Crash</title>
</head>
<body>
<p>Safari in iOS 8.3 crashes if the link is tapped when focus is in the text box:</p>
<p><input type="text" placeholder="1. Tap to focus"/></p>
<p><a id="link" href="#">2. Tap to crash</a></p>
<script>
document.getElementById("link").onclick = function() {
window.prompt("text", "value");
return false;
}
</script>
</body>
</html>
@DavidAnson
Copy link
Author

Click here to load the demo page in your browser: http://bl.ocks.org/DavidAnson/raw/7a70587b6d73750b4121/

(Thanks to http://bl.ocks.org/ for the viewer!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment