summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/insertText-at-end-of-text-in-body.html
blob: 763697314be630a81fd7019e71784bd57f5beaf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", event => {
  document.body.focus();
  const text = document.createTextNode("x".repeat(15));
  document.body.appendChild(text);
  getSelection().collapse(text, text.length);
  document.execCommand("insertText", false, "a");
});
</script>
</head>
<body contenteditable></body>
</html>