SimpleTest.waitForExplicitFinish();
addLoadEvent(function() { var f = document.createElement("iframe"); var content = document.getElementById('content');
f.addEventListener("load", function() {
SimpleTest.executeSoon(function() {
isnot(document.activeElement, f, "autofocus should not work when another frame is inserted in the document");
content.removeChild(f);
content.removeChild(document.getElementsByTagName('iframe')[0]);
f = document.createElement('iframe');
f.addEventListener("load", function() {
isnot(document.activeElement, f, "autofocus should not work in a frame if the top document is already loaded");
SimpleTest.finish();
}, {once: true});
f.src = "data:text/html,";
content.appendChild(f);
});
}, {once: true});
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.