blob: bc0a2b752731102e20458ea862aeedd41fa199a4 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<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>
<div contenteditable="true">
editable
<table border="1" contenteditable="false"><tr><td contenteditable="true" id="test">editable</td></tr></table>
editable
</div>
<script>
var e = document.getElementById("test");
var s = window.getSelection();
s.collapse(e, 0);
s.modify("move", "forward", "documentBoundary");
</script>