Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: LayoutTests/fast/text/international/mixed-directionality-selection.html

Issue 392573002: HTMLTextAreaElement.setSelectionRange should not change focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <style> 5 <style>
6 input { 6 input {
7 width: 200px; 7 width: 200px;
8 font-size: 64px; 8 font-size: 64px;
9 } 9 }
10 </style> 10 </style>
11 </head> 11 </head>
12 <body> 12 <body>
13 <input dir="rtl" value="[[مقاله]]"> 13 <input dir="rtl" value="[[مقاله]]">
14 <p> 14 <p>
15 The last character (and only the last character) should be 15 The last character (and only the last character) should be
16 selected in the text box above. 16 selected in the text box above.
17 </p> 17 </p>
18 <script> 18 <script>
19 var el = document.getElementsByTagName('input')[0]; 19 var el = document.getElementsByTagName('input')[0];
20 el.focus();
20 el.setSelectionRange(0, 1); 21 el.setSelectionRange(0, 1);
21 </script> 22 </script>
22 </body> 23 </body>
23 </html> 24 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/spatial-navigation/snav-textarea.html ('k') | Source/core/html/HTMLTextAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698