blob: 7054bb10f54f8740b3d789db66de2b83f42c7ea1 [file] [log] [blame]
<html>
<head>
<style>
blockquote {
color: blue;
border-left: 2px solid blue;
margin-left: 0px;
padding-left: 10px;
}
</style>
</head>
<body>
<div id="description">When your cursor is after an empty blockquote, hitting delete should bring the cursor (and the content following the cursor) back into the blockquote, instead of deleting the empty blockquote.</div>
<div id="edit" contenteditable="true"><blockquote type="cite">Quoted<br><br></blockquote>This should be quoted too</div>
<script>
edit = document.getElementById("edit");
var s = window.getSelection();
s.setPosition(edit, 1);
document.execCommand("Delete");
if (window.testRunner) {
testRunner.dumpAsText();
document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
}
</script>
</body>
</html>