4 This text won't be selected because it isn't editable.
5 <span id='target'
contenteditable=
"true">16-char header. This text is initially selected.
16-char footer.
</span>
6 This text won't be selected because it isn't editable.
9 var text
= document
.getElementById('target').firstChild
;
10 var range
= document
.createRange();
11 range
.setStart(text
, 16);
12 range
.setEnd(text
, 48);
13 window
.getSelection().addRange(range
);
15 window
.onload
= select
;