layout/reftests/bugs/240933-2-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/240933-2-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<body onload="setup()">
     1.7 +<textarea id="ta" dir="rtl">
     1.8 +
     1.9 +&#x05d0;a&#x05d1;
    1.10 +
    1.11 +</textarea>
    1.12 +<textarea id="tb">
    1.13 +
    1.14 +abc
    1.15 +
    1.16 +</textarea>
    1.17 +
    1.18 +<div id="coords1"></div>
    1.19 +<div id="coords2"></div>
    1.20 +
    1.21 +<script>
    1.22 +  function setup() {
    1.23 +    document.getElementById("ta").selectionStart = 3;
    1.24 +    document.getElementById("ta").selectionEnd = 3;
    1.25 +    document.getElementById("coords1").innerHTML = document.getElementById("ta").selectionStart;
    1.26 +    document.getElementById("tb").selectionStart = 3;
    1.27 +    document.getElementById("tb").selectionEnd = 3;
    1.28 +    document.getElementById("coords2").innerHTML = document.getElementById("tb").selectionStart;
    1.29 +  }
    1.30 +</script>
    1.31 +</body>
    1.32 +</html>

mercurial