1 <html contenteditable=
"true" id=
"test">
4 testRunner
.dumpEditingCallbacks();
9 var s
= window
.getSelection();
10 var e
= document
.getElementById("test");
13 document
.execCommand("InsertText", false, "\t");
14 document
.execCommand("InsertText", false, "This tests to see where the selection is set when an html element is focused.");
15 document
.execCommand("InsertHTML", false, "<br>We set it inside the body because we don't want to allow editing outside the body. This test also does some editing to make sure it happens in the body.");
18 <body onLoad=
"runTest();">