layout/reftests/bugs/503531-1-ref.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <html class="reftest-wait"><head>
     2     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     3     <title>Testcase #1 for bug 503531</title>
     4 <script>
     5 function boom() {
     6   var caret = document.getElementById('caret');
     8   var sel = window.getSelection();
     9   sel.removeAllRanges();
    10   var range = document.createRange();
    11   range.selectNode(caret);
    12   sel.addRange(range);
    13   sel.collapseToStart();
    15   setTimeout(function(){document.documentElement.className = '';}, 50)
    16 }
    17 </script>
    18 </head>
    19 <body contenteditable="true" onload="document.body.focus(); boom()">
    20 <div>BLOCK</div>
    21 <div id="caret"></div>
    22 </body>
    23 </html>

mercurial