blob: 5c0f895bddcd159f01e6dabc37fa8a5d76ac8cb3 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.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>