editor/reftests/824080-7.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE html>
     2 <html>
     3 <head>
     4   <script type="text/javascript">
     5     function doTest()
     6     {
     7       document.getSelection().selectAllChildren(document.body);
     8       var editor = document.getElementById("editor");
     9       editor.focus();
    10       editor.selectionStart = 2;
    11       editor.selectionEnd = 4;
    12       editor.blur();
    13       editor.focus();
    14     }
    15   </script>
    16 </head>
    17 <body onload="doTest()">
    18 <p>normal text</p>
    19 <textarea id="editor">textarea</textarea>
    20 </body>
    21 </html>

mercurial