4 <span id='target'
>16-char header. This text is initially selected.
16-char footer.
</span>
7 var text
= document
.getElementById('target').firstChild
;
8 var range
= document
.createRange();
9 range
.setStart(text
, 16);
10 range
.setEnd(text
, 48);
11 window
.getSelection().addRange(range
);
13 window
.onload
= select
;