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

function boom()
{
  window.getSelection().removeAllRanges();
  var r = document.createRange();
  r.setStart(document.getElementById("x"), 1);
  r.setEnd(document.getElementById("y"), 0);
  window.getSelection().addRange(r);
  document.execCommand("insertorderedlist", false, null);
}

</script>
</head>

<body onload="boom();"><div id="x" contenteditable="true">a</div><div id="y" contenteditable="true"></div></body>
</html>