/** Test for Bug 1457051 **/
ok(Element.isInstance(document.documentElement), "Basic isInstance works");
ok(!Element.isInstance(null), "Passing null should return false without throwing");
ok(!Element.isInstance(5), "Passing 5 should return false without throwing"); var obj = Object.create(Element.prototype);
ok(obj instanceof Element, "instanceof should walk the proto chain");
ok(!Element.isInstance(obj), "isInstance should be a pure brand check");
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.