blob: cb317494d71bec79338902f83f9ff7609c375bb4 [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<p>This places the caret before the 'b' in 'bar' and Deletes. 'foo' and 'bar' should end up on the same line, but neither should change style.</p>
<div contenteditable="true">
<div>foo</div>
<div id="test" style="font-weight:bold">bar</div>
</div>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
s.setPosition(e, 0);
document.execCommand("Delete");
</script>