layout/reftests/bugs/600803-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 <!DOCTYPE html>
     2 <html>
     3   <body onload="onLoad()">
     4     <textarea></textarea>
     5     <div id="start"></div>
     6     <div id="end"></div>
     7     <script>
     8       function onLoad() {
     9         var t = document.querySelector("textarea");
    10         t.value = "Xaa\nbbb";
    11         t.value = "aaa\nbbb\n";
    12         t.value += "X";
    13         document.getElementById("start").textContent = t.selectionStart;
    14         document.getElementById("end").textContent = t.selectionEnd;
    15       }
    16     </script>
    17   </body>
    18 </html>

mercurial