summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/indent-in-textarea-in-designMode-during-outdent.html
blob: 313c51bb5a0e12c841cb06ab512595b6afee52d8 (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
26
27
28
29
30
31
32
33
34
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
A
<script>
addEventListener("load", () => {
  const textarea = document.querySelector("textarea");
  textarea.addEventListener("focusin", onFocusIn);
  textarea.select();
  document.execCommand("outdent");
});

function onFocusIn() {
  document.querySelector("marquee").onstart = () => {
    document.designMode = "off";
    window.find("AA");
  };
  document.designMode = "on";
  document.execCommand("selectAll");
  document.execCommand("indent");
  document.designMode = "on";
}
</script>
<fieldset>
<textarea></textarea>
AA
</fieldset>
<marquee id="b"></marquee>
<blockquote contenteditable="true"></blockquote>
</body>
</html>