blob: d16503819aff3bc7eba67adb54ed31b6e6835aee [file] [log] [blame]
<div id="description">This tests applying style to a selection that ends with a line break. Only the first paragraph should be styled.</div>
<div id="edit" contentEditable="true"><blockquote id="blockquote" type="cite">hello</blockquote>world</div>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
blockquote = document.getElementById("blockquote");
edit = document.getElementById("edit");
description = document.getElementById("description");
window.getSelection().setBaseAndExtent(blockquote, 0, edit, 1);
document.execCommand("Bold");
if (window.testRunner)
document.body.innerText = description.innerText + "\n\n" + edit.innerHTML;
</script>