blob: b52271d752c8e98b6aaee8a1d1ad6d5883a8d058 [file] [log] [blame]
<html>
<head>
<style>
div { border:1px solid red; }
blockquote { border:1px solid blue; }
</style>
<script>
function runTest() {
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
var blankLine = document.getElementById('blankLine');
var s = window.getSelection();
s.setPosition(blankLine, 0);
document.execCommand("InsertNewlineInQuotedContent");
if (blankLine.nextSibling.nodeName == "BR")
console.log("SUCCESS! newline inserted AFTER quoted content");
else
console.log("FAILED! newline inserted BEFORE quoted content");
}
</script>
</head>
<body onload="runTest()">
<div><br></div>
<div contentEditable="true">
<blockquote type="cite">Line of text</blockquote>
<blockquote type="cite" id="blankLine"><br></blockquote>
</div>
</body>
</html>