/** Test for Bug 287446 **/
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {
isnot(window.location.host, "example.com", "test is not testing cross-site"); var accessed = false;
try {
$("i").contentDocument.documentElement;
accessed = true;
} catch(e) {}
is(accessed, false, "Shouldn't be able to access cross-site");
function continueTest() {
$("i").style.display = "none";
document.body.offsetWidth;
is(document.defaultView.getComputedStyle($("i")).display, "none", "toggling display second time failed");
$("i").style.display = "";
document.body.offsetWidth;
is(document.defaultView.getComputedStyle($("i")).display, "inline", "toggling display back second time failed");
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.