function runTests() {
// Test XML document cloning. var d = (new DOMParser()).parseFromString( "<html xmlns='http://www.w3.org/1999/xhtml' id='root'><foo id='child'/></html>", "text/xml"); var cloneDoc = d.cloneNode(true);
ok(cloneDoc.getElementById("root"), "XML document should have an element with ID 'root'");
ok(cloneDoc.getElementById("child"), "XML document should have an element with ID 'child'");
// Test HTML cloning.
cloneDoc = document.cloneNode(true);
ok(cloneDoc.getElementById("root"), "HTML document should have an element with ID 'root'");
ok(cloneDoc.getElementById("child"), "HTML document should have an element with ID 'child'");
SimpleTest.finish();
}
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-04-29)
¤
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.