1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/crashtests/565125-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<script> 1.8 + 1.9 +function boom() 1.10 +{ 1.11 + var a = document.createTextNode(" "); 1.12 + (document.documentElement).appendChild(a); 1.13 + var b = document.createElement("span"); 1.14 + (document.documentElement).appendChild(b); 1.15 + var c = document.createTextNode(" "); 1.16 + (document.documentElement).appendChild(c); 1.17 + var r = document.createRange(); 1.18 + r.setStart(a, 0); 1.19 + r.setEnd(c, 0); 1.20 + try { 1.21 + r.surroundContents(document.documentElement); 1.22 + } catch(e) { 1.23 + } 1.24 + document.documentElement.appendChild(b); 1.25 +} 1.26 + 1.27 +</script> 1.28 +</head> 1.29 +<body onload="boom();"></body> 1.30 +</html>