blob: 6ea86bfa1635b355b3e8a8955a83c27422976e75 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<style>
table, td {
border: 1px solid #999;
}
</style>
<p>This tests the caret position for the caret after an inline table.</p>
<div contenteditable="true">foo<table style="display:inline" id="test"><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a table</td></tr></table>baz</div>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
s.setPosition(e, e.childNodes.length);
</script>