summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/delete-content-in-no-data-object.html
blob: 749dba303be6dc688f3b73457825d66897dd55c9 (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
<!doctype html>
<html class="test-wait">
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
  requestAnimationFrame(() => {
    setTimeout(() => {
      document.execCommand("delete");
      document.documentElement.removeAttribute("class");
    }, 0);
    document.execCommand("insertImage", false, "x");
  });
  document.execCommand("justifyCenter");
})
function onError() {
  document.querySelector("s").before("BEFORE");
  document.designMode = "on";
  const img = document.querySelector("img");
  img.innerHTML = "IMG";
  getSelection().setBaseAndExtent(document.querySelector("kbd"), 0, img, 1);
}
</script>
</head>
<body><object onerror="onError()">
<s>
<img>
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
<kbd>
</kbd></s></object></body>
</html>