Reviewed by Darin.
[WebKit-https.git] / LayoutTests / editing / selection / mixed-editability-8.html
1 <script>
2 if (window.layoutTestController)
3      layoutTestController.dumpEditingCallbacks();
4 </script>
5 <p>This tests moving the caret backward through content of mixed editability. The caret should end up back at the start of the editable text inside the table.</p>
6
7 <div contenteditable="true">
8 editable
9 <table border="1" contenteditable="false"><tbody><tr><td><div style="display:inline-block; "><span>static</span><span id="test" contenteditable="plaintext-only">editable</span></div></td></tr></tbody></table>
10 editable
11 </div>
12
13 <script>
14 var e = document.getElementById("test");
15 var s = window.getSelection();
16
17 s.setPosition(e, 0);
18 s.modify("move", "forward", "character");
19
20 s.modify("move", "backward", "word");
21 </script>