summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/indent-in-inline-editing-host-outside-body.html
blob: d56a0fd248b9f98f4d6355e2ac0f4736b5014e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", () => {
  const samp = document.createElement("samp");
  samp.innerText = "ABC";
  samp.contentEditable = true;
  document.documentElement.appendChild(samp);
  getSelection().selectAllChildren(samp);
  document.execCommand("indent");
});
</script>
</head>
<body>
</body>
</html>