summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/565125-1.html
blob: ceeb923f4c8460a33417eb8616f3bbd44cb53773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<script>

function boom()
{
  var a = document.createTextNode(" ");
  (document.documentElement).appendChild(a);
  var b = document.createElement("span");
  (document.documentElement).appendChild(b);
  var c = document.createTextNode(" ");
  (document.documentElement).appendChild(c);
  var r = document.createRange();
  r.setStart(a, 0); 
  r.setEnd(c, 0); 
  try {
    r.surroundContents(document.documentElement); 
  } catch(e) {
  }
  document.documentElement.appendChild(b);
}

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