function testItById(id, collection, collectionName) {
is(collection[id], $(id), "Should be able to get by id '" + id + "' from " + collectionName + " collection using square brackets.")
is(collection.namedItem(id), $(id), "Should be able to get by id '" + id + "' from " + collectionName + " collection using namedItem.")
}
function testItByName(name, id, collection, collectionName) {
is(collection[name], $(id), "Should be able to get by name '" + name + "' from " + collectionName + " collection using square brackets.")
is(collection.namedItem(name), $(id), "Should be able to get by name '" + name + "' from " + collectionName + " collection using namedItem.")
}
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.