blob: b807ff9e61cc0dc9a1f9580bc1e6fccac2160911 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<table><tr><td></td></tr></table>
<map><area></area></map>
<select><option></option></select>
<script>
description("This test verifies that collection getters return the same collection when called repeatedly.");
var collections = [
"document.all",
"document.images",
"document.embeds",
"document.applets",
"document.links",
"document.forms",
"document.anchors",
"document.scripts",
"document.getElementsByTagName('table')[0].rows[0].cells",
"document.getElementsByTagName('table')[0].tBodies",
"document.getElementsByTagName('table')[0].tBodies[0].rows",
"document.body.children",
"document.getElementsByTagName('map')[0].areas",
"document.getElementsByTagName('select')[0].options"
];
for (var i = 0; i < collections.length; ++i) {
shouldBe(collections[i], collections[i]);
shouldBeTrue(collections[i] + " === " + collections[i]);
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>