delete-line-015.html   [plain text]


<html> 

<head>
<script src="../editing.js"></script>
<script>
function editingTest() {
    extendSelectionForwardByLineCommand();    
    deleteCommand(); 
}
</script>
</head> 

<body>

<p>This tests deletion of an empty line starting inside a &lt;div&gt; element,
but ending outside that element (just before a &lt;br&gt;). If the deletion is
successful, the result should have two lines, and the insertion point
should be on the second line, at the end of the editable area.</p>

<div contenteditable>
<div>a</div><div id="test"><br></div><br>
</div>

</body>

<script>runEditingTest()</script>

</html>