blob: 1f5f67c2cf470304cac9c9f853dacc8ab5d52b26 [file] [log] [blame]
<div id="dest"></div>
<div id="t">
Lorem ipsum
</div>
<script type="text/javascript">
var t = document.getElementById('t');
var dest = document.getElementById('dest');
window.getSelection().setBaseAndExtent(t.childNodes[0], 4, t.childNodes[0], 8);
t.style.display="inline";
dest.appendChild(t);
</script>