layout/reftests/selection/dynamic-text-1a.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 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head>
     4 <body style="white-space:pre"> 00 
     5  BC 
     6  FG 
     7  JK 
     8 <script>
     9 document.body.offsetTop;
    10 var t = document.body.firstChild;
    11 var sel = window.getSelection();
    12 sel.collapse(t, 11);
    13 sel.extend(t, 13);
    15 function doTest() {
    16   t.replaceData(0, 5, '');
    17   document.documentElement.removeAttribute('class');
    18 }
    19 document.addEventListener("MozReftestInvalidate", doTest, false);
    20 </script>
    21 </body>
    22 </html>

mercurial