2 <div>This tests to make sure that document.getSelection() is supported and returns a Selection object for the document.
</div>
3 <div id=
"div">xxx
</div>
4 <div id=
"console"></div>
7 window
.testRunner
.dumpAsText();
8 div
= document
.getElementById("div");
10 s
= document
.getSelection();
11 s
.setBaseAndExtent(text
, 1, text
, 2);
12 document
.getElementById("console").innerText
= "Selection: (" + s
.baseNode
+ ", " + s
.baseOffset
+ ") to (" + s
.extentNode
+ ", " + s
.extentOffset
+ ")";