Skip to content

Instantly share code, notes, and snippets.

@DavidAnson
Last active Aug 29, 2015
Embed
What would you like to do?
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

DavidAnson commented Apr 13, 2015

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