editor/libeditor/crashtests/716456-1.html
author Markus Stange <mstange@themasta.com>
Mon, 15 Jun 2015 19:20:59 -0400
changeset 249905 3f025568ad349d7b4a4da45feef6812c4e4d4101
parent 200218 a357afff88300587c1905f01819c777f461af7eb
permissions -rw-r--r--
Bug 1165185 - Try to avoid invalidations when scrolling transformed elements. r=roc

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script>

function boom()
{
  var div = document.querySelector("div");
  div.contentEditable = "true";
  div.focus();

  var r = document.documentElement;
  document["removeChild"](r);
  document["appendChild"](r);

  setTimeout(function() {
    getSelection().collapse(div, 0);
    document.execCommand("inserthtml", false, "a");
    setTimeout(function() {
      document.documentElement.removeAttribute("class");
    }, 0);
  }, 0);
}

</script>
</head>

<body onload="boom();"><div></div></body>
</html>