5 var selection
= window
.getSelection();
6 var range
= document
.createRange();
7 range
.selectNode(document
.getElementById("selectMe"));
8 selection
.addRange(range
);
10 var table
= document
.createElement("table");
11 document
.getElementById('form').appendChild(table
);
15 <body onload=
"loaded()">
16 <table><tr><td id=
"selectMe">This test passes if it does not crash.
</td></tr><form style=
"display:inline" id=
"form"></form></table>