summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/766795.html
blob: b4ade30209471c6328e94481dec9d26b08b60099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
<head>
<script>

function boom()
{
  var fragEl = document.createElement("span");
  fragEl.setAttribute("contenteditable", "true");
  fragEl.setAttribute("style", "position: absolute;");

  var frag = document.createDocumentFragment();
  frag.appendChild(fragEl);

  window.getSelection().selectAllChildren(fragEl);
}

</script>
</head>

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