function runTest() { var testParent = document.getElementById("test_parent"); var attrs = testParent.firstChild.attributes;
ok(attrs != null, "Element should have attributes!"); var attr = testParent.firstChild.getAttributeNode("someattr");
ok(attr.value == "foo", "The value of the attribute should be 'foo'!");
testParent.firstChild.remove();
SpecialPowers.gc();
ok(true, "Browser should not crash!")
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.