3 testRunner.dumpEditingCallbacks();
5 <p>This tests to make sure that rich editing commands like Bold can be performed on text in a document in design mode.</p>
6 <div id="test">This text should be bold.</div>
9 document.designMode = "on";
10 var s = window.getSelection();
11 var e = document.getElementById("test");
12 s.setBaseAndExtent(e, 0, e, e.childNodes.length);
13 document.execCommand("Bold");