10 border: 2px solid blue;
15 .scenario { margin-bottom: 16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
17 .expected-results:first-line { font-weight: bold }
19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
22 function editingTest() {
23 var t1 = document.getElementById("test1");
24 var t2 = document.getElementById("test2");
25 setSelectionCommand(t1, 0, t2, 3);
28 var e = document.getElementById("target");
29 setSelectionCommand(e, 0, e, 1);
35 <title>Editing Test</title>
37 <body id="root" contenteditable>
38 <table><tr><td id="test1">hello</td><td id="test2">world</td></tr></table>
39 <div id="target">replaceme</div>