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

function boom()
{
  var x = document.getElementById("x");

  window.getSelection().removeAllRanges();

  var range = document.createRange();
  range.setStart(x, 0);
  range.setEnd(x, 0);
  window.getSelection().addRange(range);

  document.execCommand("delete", false, "null");
}

</script>
</head>
<body contenteditable="true" onload="boom();"><div></div><span id="x"></span></body>
</html>