blob: 719359a3ae2af29745cceb137373bf221232e038 [file] [log] [blame]
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
var selection = window.getSelection();
var s = document.getElementById("start");
selection.setPosition(s, 0);
execMoveSelectionForwardByCharacterCommand();
for (i = 0; i < 3; i++) {
deleteCommand();
}
}
</script>
<div contenteditable="true" id="test">
<div>Before</div>
<table style="border:3px solid #aaa;">
<tr>
<td>
Foo
</td>
<td>
baz
</td>
</tr>
<tr>
<td>
bar
</td>
<td>
buffalo
</td>
</tr>
</table>
<span id="start">after</span>
</div>
<script>
runEditingTest();
</script>