summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/716456-1.html
blob: a5ef5a2cc3863134ce252423d0756330900931e3 (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
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script>

function boom()
{
  var div = document.querySelector("div");
  div.contentEditable = "true";
  div.focus();

  var r = document.documentElement;
  document["removeChild"](r);
  document["appendChild"](r);

  setTimeout(function() {
    getSelection().collapse(div, 0);
    document.execCommand("inserthtml", false, "a");
    setTimeout(function() {
      document.documentElement.removeAttribute("class");
    }, 0);
  }, 0);
}

</script>
</head>

<body onload="boom();"><div></div></body>
</html>