Last active
August 29, 2015 14:19
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!)