bug646382-1-ref.html (641B)
1 <html class="reftest-wait"> 2 <head> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 4 </head> 5 <body onload="start()"> 6 <textarea onfocus="done()" 7 style="-moz-appearance: none; 8 unicode-bidi: bidi-override;">س</textarea> 9 <script> 10 var textarea = document.querySelector("textarea"); 11 function start() { 12 textarea.focus(); 13 textarea.selectionStart = 1; // place caret after the letter 14 textarea.selectionEnd = 1; 15 } 16 function done() { 17 document.documentElement.removeAttribute("class"); 18 } 19 </script> 20 </body> 21 </html>