layout/reftests/bugs/600803-1.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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 = "aaa\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