layout/reftests/bugs/240933-2-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 <!DOCTYPE html>
     2 <html>
     3 <body onload="setup()">
     4 <textarea id="ta" dir="rtl">
     6 &#x05d0;a&#x05d1;
     8 </textarea>
     9 <textarea id="tb">
    11 abc
    13 </textarea>
    15 <div id="coords1"></div>
    16 <div id="coords2"></div>
    18 <script>
    19   function setup() {
    20     document.getElementById("ta").selectionStart = 3;
    21     document.getElementById("ta").selectionEnd = 3;
    22     document.getElementById("coords1").innerHTML = document.getElementById("ta").selectionStart;
    23     document.getElementById("tb").selectionStart = 3;
    24     document.getElementById("tb").selectionEnd = 3;
    25     document.getElementById("coords2").innerHTML = document.getElementById("tb").selectionStart;
    26   }
    27 </script>
    28 </body>
    29 </html>

mercurial