Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / mixed-editability-3.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests moving the caret forward through content of mixed editability.  The caret should move down one line from the editable piece to the editable piece that's embedded in a non-editable piece.</p>
6
7 <div contenteditable="true" id="test">
8 editable
9 <table border="1" contenteditable="false"><tr><td contenteditable="true">editable</td></tr></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
19 s.modify("move", "forward", "line");
20 </script>