editor/reftests/969773.html
author Philip Chee <philip.chee@gmail.com>
Sun, 27 Mar 2016 00:06:15 +0800
changeset 290514 2a8ca5caae8e3a300701b0a85e5051ead55e0648
parent 167808 9009d48cb9c7bd1ed5e742e290979ae2f10667fe
child 329664 7b434711753b98a87603453caaa0945791ffe12b
permissions -rw-r--r--
Bug 1258161 Remove obsolete strings from docshell/resources/content/netError.xhtml r=past

<!DOCTYPE html>
<html class="reftest-wait">
<head>
  <meta charset="utf-8">
  <title>Contenteditable Selection Test Case</title>
  <script>
    function runTests() {
      var editable = document.getElementById("editable");
      var text = document.getElementById("text");

      editable.focus();

      setTimeout(function () {
        editable.setAttribute("contenteditable", "false");
        text.focus();
        setTimeout(function () {
          document.body.offsetHeight;
          document.documentElement.removeAttribute('class');
        }, 0);
      }, 0);
    }
    document.addEventListener('MozReftestInvalidate', runTests, false);
  </script>
</head>
<body>
    <div id="editable" contenteditable="true" tabindex="0" spellcheck="false">This is a contenteditable.</div>
    <div id="text" tabindex="0">This is focusable text</div>
</body>
</html>