3 <meta http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
4 <script type=
"text/javascript" src=
"../../resources/dump-as-markup.js"></script>
7 <div style=
"direction: rtl;" contenteditable=
"true" id=
"test1">1234שדגכ:
</div>
9 <div contenteditable=
"true" id=
"test2">
11 <div style=
"direction: rtl;">1234שדגכ:
</div>
16 Markup
.description('These tests to see if bidi text with a base writing direction of right to left is put onto the paste board in logical (DOM) order.');
18 var e
= document
.getElementById("test1");
19 var s
= window
.getSelection();
21 Markup
.dump('test1', 'first test - before');
23 document
.execCommand("SelectAll");
24 document
.execCommand("Cut");
25 document
.execCommand("Paste");
26 Markup
.dump('test1', 'first test - after');
28 Markup
.dump('test2', 'second test - before');
29 e
= document
.getElementById("test2");
31 document
.execCommand("SelectAll");
32 document
.execCommand("Cut");
33 document
.execCommand("Paste");
34 Markup
.dump('test2', 'second test - after');