blob: 34a638c1603381cee03e4265ab4ed2b83ea5fee7 [file] [log] [blame]
<html>
<head>
<style>
.editing {
border: 2px solid red;
font-size: 24px;
word-wrap: break-word;
-khtml-nbsp-mode: space;
-khtml-line-break: after-white-space;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
extendSelectionForwardByLineCommand();
extendSelectionForwardByLineCommand();
copyCommand();
moveSelectionForwardByLineCommand();
moveSelectionForwardByLineCommand();
pasteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<p><b>This demonstrates a bug:</b> copying an empty line that's implemented with a br doesn't put an interchange newline on the pasteboard. There should be two blank lines after the 'a'.</p>
<div contenteditable="true" id="test">
<div class="editing">a<br><br>b</div>
<div class="editing"></div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>