blob: 5992be3d5e100ca59e229c6d7f723bb799b9767d [file] [log] [blame]
<p>This tests for a bug where underlined content would lose its underlining when deleting the line break before the paragraph that contained it.</p>
<div contenteditable="true">This shouldn't be underlined.<div id="div" style="text-decoration: underline;">This should be underlined.</div></div>
<script>
var div = document.getElementById("div");
var range = document.createRange();
range.setStart(div, 0);
range.setEnd(div, 0);
var sel = window.getSelection();
sel.addRange(range);
document.execCommand("Delete");
</script>