blob: 274cfc5f64b4bdd3355210bc898b89f3dbe9f889 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div contenteditable id="test"><b>place the cursor between these two lines<br><br>and press return</b><br>
</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('This test ensures WebKit inserts only a break element when inserting a paragraph at a break element.\n'+
'Only one BR should be inserted in this test.');
var elem = document.getElementById('test');
window.getSelection().setPosition(elem.firstChild, 2);
document.execCommand("InsertParagraph");
Markup.dump(elem, "After");
</script>
</body>
</html>