summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/set-selection-range-after-updating-textarea-default-value.html
blob: 421306fc96142aeaee22279febfb5a896da905c6 (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", () => {
  const textarea = document.createElement("textarea");
  document.documentElement.appendChild(textarea);
  textarea.focus();
  textarea.dir = "rtl";
  textarea.prepend("0123456789A", document.createElement("marquee"));
  textarea.setSelectionRange(8, 13, "");
});
</script>
</head>
</html>