1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/base/crashtests/336104.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 +<head> 1.6 +<script> 1.7 +function init() 1.8 +{ 1.9 + var targetWindow = window.frames[0]; 1.10 + var targetDocument = targetWindow.document; 1.11 + var rootish = document.getElementById('rootish'); 1.12 + 1.13 + targetDocument.body.appendChild(targetDocument.adoptNode(rootish)); 1.14 + targetDocument.designMode = 'on'; 1.15 + 1.16 + targetWindow.getSelection().removeAllRanges(); 1.17 + 1.18 + var r = targetDocument.createRange(); 1.19 + r.setStart(targetDocument.getElementById("start"), 0); 1.20 + r.setEnd (targetDocument.getElementById("endparent").firstChild, 0); 1.21 + targetWindow.getSelection().addRange(r); 1.22 + 1.23 + targetDocument.execCommand('outdent', false, null); 1.24 +} 1.25 +</script> 1.26 + 1.27 +</head> 1.28 + 1.29 +<body onload="setTimeout(init, 300);"> 1.30 + 1.31 +<iframe src="data:text/html," style="width: 95%; height: 500px;"></iframe> 1.32 + 1.33 +<div id="rootish"> 1.34 + <div id="start"></div> 1.35 + <p>Huh</p> 1.36 + <svg xmlns="http://www.w3.org/2000/svg" id="endparent"> </svg> 1.37 +</div> 1.38 + 1.39 +</body> 1.40 +</html>