1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/svg/crashtests/385840-1.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" onload="boom();"> 1.5 + 1.6 +<script> 1.7 + 1.8 +function boom() 1.9 +{ 1.10 + var SVG_NS = "http://www.w3.org/2000/svg"; 1.11 + 1.12 + var svgCircle = document.createElementNS(SVG_NS, 'circle'); 1.13 + var svgText = document.createElementNS(SVG_NS, 'text'); 1.14 + svgText.appendChild(document.createTextNode("foo")); 1.15 + svgCircle.appendChild(svgText); 1.16 + 1.17 + document.removeChild(document.documentElement); 1.18 + document.appendChild(svgCircle); 1.19 +} 1.20 + 1.21 +</script> 1.22 + 1.23 +</svg>