/** Test for Bug 738108 **/
is(document.querySelector("#foo"), $("foo"), "querySelector on document should find element by id")
is($("content").querySelector("#foo"), $("foo"), "querySelector on parent element should find element by id")
is($("foo").querySelector("#foo"), null, "querySelector on element should not find the element itself by id")
is(document.querySelectorAll("#foo").length, 1, "querySelectorAll on document should find element by id")
is($("content").querySelectorAll("#foo").length, 1, "querySelectorAll on parent element should find element by id")
is($("foo").querySelectorAll("#foo").length, 0, "querySelectorall on element should not find the element itself by id")
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.