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

function boom()
{
  var t = document.createTextNode("a");
  document.body.appendChild(t);
  var r1 = document.createRange();
  r1.setEnd(t, 1);
  var r2 = document.createRange();
  r2.setEnd(t, 0);
  r2.deleteContents();
}

</script>
</head>

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