blob: 11a29eaeda2fa7c9fb88a226a915e404449afb22 [file]
<!DOCTYPE html>
<!--
@AURALINUX-ALLOW:selection_start
@AURALINUX-ALLOW:selection_end
@BLINK-ALLOW:*textSel*
@MAC-ALLOW:AXSelectedText*
@WIN-ALLOW:selection_start
@WIN-ALLOW:selection_end
@WIN-ALLOW:n_selections
-->
<html>
<body>
<p id="paragraph1">Paragraph1</p>
<input id='input1' type='text' value='EditableText'>
<input id='input2' type='text' value='EditableText'>
<p id="paragraph2">Paragraph2</p>
</body>
<script>
var selectionRange = document.createRange();
var selection = window.getSelection();
var start = document.getElementById('paragraph1')
var end = document.getElementById('paragraph2')
selectionRange.setStart(start.firstChild,5);
selectionRange.setEnd(end.firstChild, 7);
selection.removeAllRanges();
selection.addRange(selectionRange);
</script>
</html>