blob: 5b61174f713a6a50f4f36020c848064723dec213 [file] [log] [blame]
<html>
<head>
<title></title>
<style>
@import url(resources/Mac-compatible-font-fallback.css);
</style>
</head>
<body>
<p>
This is a regression test for <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8866">http://bugzilla.opendarwin.org/show_bug.cgi?id=8866</a>
REGRESSION: Incorrect caret position in RTL text</i>.
</p>
<p>
The caret should be in the middle of the Hebrew word.
</p>
<hr>
<div id="t" contenteditable>
&#x05d0;&#x05d5;&#x05db;&#x05de;&#x05e0;&#x05d9;&#x05d5;&#x05ea;
</div>
<script type="text/javascript">
var text = document.getElementById('t').childNodes[0];
window.getSelection().setBaseAndExtent(text, 5, text, 5);
</script>
</body>
</html>