https://github.com/mozilla/gecko-dev
Raw File
Tip revision: e0b978663d6e5cd2ad31f03385a467b02b524a48 authored by B2G Bumper Bot on 07 August 2015, 06:35:44 UTC
Bumping manifests a=b2g-bump
Tip revision: e0b9786
969773.html
<!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>
back to top