summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/715056.html
blob: 214569b02a740bdf9dbc568b6c78fb4a990b5446 (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 t1 = document.createTextNode("a");
  var t2 = document.createTextNode("b");
  document.appendChild(t1);
  document.appendChild(t2);
  var sel = window.getSelection();
  sel.collapse(t2, 0)
  document.normalize();
  sel.removeAllRanges();
}

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