4 <p>See bug
57148. When deleteing the last character in a table deletes the table, no styled spans should be left behind.
5 To test manually, place cursor after
"X" and do a backward delete. No styled span should be created.
</p>
7 <div id=
"root" contenteditable
class=
"editing">
8 <table style=
"border-collapse:collapse"><tr><td id=
"cursor">X
</td></tr></table>
11 <div id=
"result"></div>
13 <script src=
"../editing.js"></script>
16 function editingTest() {
17 var cursorCell
= document
.getElementById("cursor");
18 execSetSelectionCommand(cursorCell
.firstChild
, 1, cursorCell
.firstChild
, 1);
20 var styledSpans
= document
.getElementsByTagName("span");
21 result
.innerHTML
= styledSpans
.length
== 0 ? "PASS" : "FAIL";
24 if (window
.testRunner
)
25 runDumpAsTextEditingTest();