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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/text/international/rtl-caret.html

Issue 2709983005: Selection API: Do not change focus by Selection functions. (Closed)
Patch Set: . Created 3 years, 9 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 <html> 1 <html>
2 <head> 2 <head>
3 <title></title> 3 <title></title>
4 </head> 4 </head>
5 <body> 5 <body>
6 <p> 6 <p>
7 This is a regression test for <i><a href="https://bugs.webkit.org/show_bug.c gi?id=8866">http://bugzilla.opendarwin.org/show_bug.cgi?id=8866</a> 7 This is a regression test for <i><a href="https://bugs.webkit.org/show_bug.c gi?id=8866">http://bugzilla.opendarwin.org/show_bug.cgi?id=8866</a>
8 REGRESSION: Incorrect caret position in RTL text</i>. 8 REGRESSION: Incorrect caret position in RTL text</i>.
9 </p> 9 </p>
10 <p> 10 <p>
11 The caret should be in the middle of the Hebrew word. 11 The caret should be in the middle of the Hebrew word.
12 </p> 12 </p>
13 <hr> 13 <hr>
14 <div id="t" contenteditable> 14 <div id="t" contenteditable>
15 &#x05d0;&#x05d5;&#x05db;&#x05de;&#x05e0;&#x05d9;&#x05d5;&#x05ea; 15 &#x05d0;&#x05d5;&#x05db;&#x05de;&#x05e0;&#x05d9;&#x05d5;&#x05ea;
16 </div> 16 </div>
17 <script type="text/javascript"> 17 <script type="text/javascript">
18 var text = document.getElementById('t').childNodes[0]; 18 var text = document.getElementById('t').childNodes[0];
19 text.parentNode.focus();
19 window.getSelection().setBaseAndExtent(text, 5, text, 5); 20 window.getSelection().setBaseAndExtent(text, 5, text, 5);
20 </script> 21 </script>
21 </body> 22 </body>
22 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698