blob: dc3a4475fe9dba3567434ae55b0a4ed72dd2b315 [file] [log] [blame]
<p>This tests extending an editable selection across non-editable content. Everything in the region below should be selected.</p>
<div id="div" contenteditable="true">x<span contenteditable="false">xx</span>x</div>
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
sel.setPosition(div, 0);
sel.modify("extend", "forward", "character");
sel.modify("extend", "forward", "character");
sel.modify("extend", "forward", "character");
</script>