blob: 4f9b24b27eb07683510db88596ec8610f79127c2 [file] [log] [blame]
<script src="resources/repaint.js" type="text/javascript"></script>
<script type="text/javascript">
function repaintTest() {
document.execCommand("InsertParagraph");
}
</script>
<body onload="runRepaintTest();">
<p>This tests for a repaint bug. The old caret position should be invalidated when a paragraph separator is inserted.</p>
<div contenteditable="true">
<div><br></div>
<div id="div"><br></div>
</div>
<script>
var div = document.getElementById("div");
var sel = window.getSelection();
sel.setPosition(div, 0);
</script>
</body>