var ifr;
function test() { var d = document.implementation.createHTMLDocument("");
is(d.activeElement, d.body, "Active element should be body by default! (1)");
var firstDoc;
function test2() {
firstDoc = ifr.contentDocument;
is(firstDoc.activeElement, firstDoc.body, "Active element should be body by default! (2)");
ifr.onload = test3;
ifr.srcdoc = "";
}
function test3() {
ifr.contentDocument.getElementsByTagName("input")[0].focus();
is(firstDoc.activeElement, firstDoc.body, "Active element should be body by default! (3)");
ifr.remove();
is(firstDoc.activeElement, firstDoc.body, "Active element should be body by default! (4)");
SimpleTest.finish();
}
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.