1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/svg/crashtests/880925-1.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +<?xml version="1.0"?> 1.5 + 1.6 +<svg xmlns="http://www.w3.org/2000/svg"> 1.7 +<script> 1.8 +<![CDATA[ 1.9 + 1.10 +function boom() 1.11 +{ 1.12 + var svgText = document.createElementNS("http://www.w3.org/2000/svg", "text"); 1.13 + document.documentElement.appendChild(svgText); 1.14 + var text1 = document.createTextNode("A"); 1.15 + svgText.appendChild(text1); 1.16 + var text2 = document.createTextNode(""); 1.17 + svgText.appendChild(text2); 1.18 + document.caretPositionFromPoint(0, 0); 1.19 + setTimeout(function() { 1.20 + text2.data = "B"; 1.21 + document.caretPositionFromPoint(0, 0); 1.22 + }, 0); 1.23 +} 1.24 + 1.25 +window.addEventListener("load", boom, false); 1.26 + 1.27 +]]> 1.28 +</script> 1.29 +</svg>