/** Test for Bug 795418 **/
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(function() { vardiv = document.getElementById("copySource"); var sel = window.getSelection();
sel.removeAllRanges();
// Select the text from the text node in div. var r = document.createRange();
r.setStart(div.firstChild, 0);
r.setEnd(div.firstChild, 9);
sel.addRange(r);
function checkResult() { variframe = document.querySelector("iframe"); var theEdit = iframe.contentDocument.body;
theEdit.offsetHeight;
is(theEdit.innerHTML, "AB
cite\">Copy this
", "unexpected HTML for test");
SimpleTest.finish();
}
function pasteQuote() { variframe = document.querySelector("iframe"); var iframeWindow = iframe.contentWindow; var theEdit = iframe.contentDocument.body; iframe.contentDocument.designMode = "on"; iframe.contentDocument.body.offsetHeight;
iframeWindow.focus();
SimpleTest.waitForFocus(function() { var iframeSel = iframeWindow.getSelection();
iframeSel.removeAllRanges();
iframeSel.collapse(theEdit.firstChild, 1);
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 ist noch experimentell.