summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/selection/crashtests/selection-modify-line-next-to-textarea.html
blob: b685add01c004885a32e22211acad17843f1d132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", () => {
  getSelection().collapse(document.querySelector("header"), 1);
  getSelection().modify("move", "backward", "line");
  const ruby = document.querySelector("ruby");
  ruby.parentElement.replaceChild(document.createElement("h3"), ruby);
  getSelection().modify("extend", "backward", "character");
});
</script>
</head>
<body>
<textarea>
</textarea>
<abbr>
<header>
<select autofocus='false'>
<input/>
<sup>
<ruby id='a'>
</body>
</html>