1 <p>This tests for a deletion bug. Only the second paragraph inside the table should be deleted. You should see a table with 'foo' in it below.
</p>
2 <div id=
"div" contenteditable=
"true"><table id=
"table" border=
"1"><tr><td id=
"td"><div>foo
</div>bar
</td></tr></table></div>
8 testRunner
.dumpAsText();
10 function log(message
) {
11 var console
= document
.getElementById("console");
12 var text
= document
.createTextNode(message
);
13 console
.appendChild(text
);
16 table
= document
.getElementById("table");
17 td
= document
.getElementById("td");
18 text
= td
.firstChild
.nextSibling
;
19 s
= window
.getSelection();
20 s
.setBaseAndExtent(text
, 0, table
, 1);
21 document
.execCommand("Delete");
23 log(document
.getElementById('div').innerHTML
);