Skip to content

Instantly share code, notes, and snippets.

@nixpulvis
Created September 26, 2018 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nixpulvis/e46fa60c4b21d31c6a673c64350674c5 to your computer and use it in GitHub Desktop.
Save nixpulvis/e46fa60c4b21d31c6a673c64350674c5 to your computer and use it in GitHub Desktop.
Webkit Fail
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>iOS 12 Safari bugs</title>
<script type="text/javascript">
window.addEventListener("load", function ()
{
let arr = [1, 2, 3, 4, 5];
alert(arr.join());
document.querySelector("button").addEventListener("click", function ()
{
arr.reverse();
});
});
</script>
</head>
<body>
<button>Array.reverse()</button>
<p style="color:red;">test: click button and refresh page, code:</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment