1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/crashtests/716456-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 +<script> 1.8 + 1.9 +function boom() 1.10 +{ 1.11 + var div = document.querySelector("div"); 1.12 + div.contentEditable = "true"; 1.13 + div.focus(); 1.14 + 1.15 + var r = document.documentElement; 1.16 + document["removeChild"](r); 1.17 + document["appendChild"](r); 1.18 + 1.19 + setTimeout(function() { 1.20 + getSelection().collapse(div, 0); 1.21 + document.execCommand("inserthtml", false, "a"); 1.22 + setTimeout(function() { 1.23 + document.documentElement.removeAttribute("class"); 1.24 + }, 0); 1.25 + }, 0); 1.26 +} 1.27 + 1.28 +</script> 1.29 +</head> 1.30 + 1.31 +<body onload="boom();"><div></div></body> 1.32 +</html>