2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / editing / deleting / merge-different-styles.html
blobcb317494d71bec79338902f83f9ff7609c375bb4
1 <script>
2 if (window.layoutTestController)
3 layoutTestController.dumpEditingCallbacks();
4 </script>
5 <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>
6 <div contenteditable="true">
7 <div>foo</div>
8 <div id="test" style="font-weight:bold">bar</div>
9 </div>
11 <script>
12 var s = window.getSelection();
13 var e = document.getElementById("test");
14 s.setPosition(e, 0);
15 document.execCommand("Delete");
16 </script>