<script> | |
if (window.layoutTestController) | |
layoutTestController.dumpEditingCallbacks(); | |
</script> | |
<p>This tests paragraphBoundary selection navigation. The caret should be at the end of the paragraph below, just after the select box.</p> | |
<div id="div" contenteditable="true"><select><option>1</option></select></div> | |
<script> | |
var sel = window.getSelection(); | |
var div = document.getElementById("div"); | |
sel.setPosition(div, 0); | |
sel.modify("move", "forward", "paragraphBoundary"); | |
</script> |