6 <span id=
"header_1">Header
1.
</span>
7 <span id=
"header_2">Header
2.
</span>
10 <span id=
"editable" contenteditable=
"true">[
11 <span id=
"editable_1">Editable
1.
</span>
12 <span id=
"editable_2">Editable
2.
</span>
16 <span id=
"footer_1">Footer
1.
</span>
17 <span id=
"footer_2">Footer
2.
</span>
21 function selectElement(id
) {
22 var element
= document
.getElementById(id
);
23 var range
= document
.createRange();
24 range
.selectNode(document
.getElementById(id
));
25 window
.getSelection().removeAllRanges();
26 window
.getSelection().addRange(range
);