summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/selection/crashtests/selection-modify-around-textarea.html
blob: 113dea5ffa077927f84ea52f5b3428137ea5a6e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
document.addEventListener("DOMContentLoaded", () => {
  const time = document.querySelector("time");
  getSelection().setBaseAndExtent(time, 2, time, 3);
  getSelection().modify("move", "left", "line");
  getSelection().collapseToStart();
});
</script>
</head>
<body><time style="user-select:none">
<h5>
<pre contenteditable></pre>
<textarea></textarea>
</h5>
<h6></h6>
<textarea></textarea>
</body>
</html>