| OLD | NEW |
| 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 אוכמניות | 15 אוכמניות |
| 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> |
| OLD | NEW |