/**
* Test for Bug 857487
*
* Tests that removing atable row through nsIHTMLEditor works
*/
function getEditor() {
const Ci = SpecialPowers.Ci; var editingSession = SpecialPowers.wrap(window).docShell.editingSession;
return editingSession.getEditorForWindow(window).QueryInterface(Ci.nsITableEditor);
}
var cell = document.getElementById("cell");
cell.focus();
// place caret at end of center cell var sel = getSelection();
sel.collapse(cell, cell.childNodes.length);
var editor = getEditor();
editor.deleteTableRow(1);
vartable = document.getElementById("table");
is( table.innerHTML.replaceAll(/[ \n]/g, ""), "<tbody><tr><td>a</td><td>b</td><td>c</td></tr><tr><td>g</td><td>h</td><td>i</td></tr></tbody>", "editor.deleteTableRow(1) should delete the row containing the selection"
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.