editor/reftests/969773.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head>
     4   <meta charset="utf-8">
     5   <title>Contenteditable Selection Test Case</title>
     6   <script>
     7     function runTests() {
     8       var editable = document.getElementById("editable");
     9       var text = document.getElementById("text");
    11       editable.focus();
    13       setTimeout(function () {
    14         editable.setAttribute("contenteditable", "false");
    15         text.focus();
    16         setTimeout(function () {
    17           document.body.offsetHeight;
    18           document.documentElement.removeAttribute('class');
    19         }, 0);
    20       }, 0);
    21     }
    22     document.addEventListener('MozReftestInvalidate', runTests, false);
    23   </script>
    24 </head>
    25 <body>
    26     <div id="editable" contenteditable="true" tabindex="0" spellcheck="false">This is a contenteditable.</div>
    27     <div id="text" tabindex="0">This is focusable text</div>
    28 </body>
    29 </html>

mercurial