summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/776323.html
blob: 9fc2776c3710c5abf9957353528d351868fd7a1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html contenteditable="true">
<head>
<script>

function boom()
{
  document.execCommand("inserthtml", false, "b");
  var myrange = document.createRange();
  myrange.selectNodeContents(document.getElementsByTagName("img")[0]);
  window.getSelection().addRange(myrange);
  document.execCommand("strikethrough", false, null);
}

</script>
</head>
<body onload="boom();"><img></body>
</html>