summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/htmlallcollection-call-with-index-caching-bug.html
blob: 38f98d56af27244e56ce199124076cb5aab4a416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head id="foo">
<meta charset="utf-8">
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<script>

description("This tests verifies that calling document.all(name, index) doesn't affect subsequent calls to document.all.item(index)");

shouldBe("document.all.item(0)", "document.documentElement");
debug("Calling document.all('foo', 0).");
document.all('foo', 0)
shouldBe("document.all.item(0)", "document.documentElement");

</script>
</body>
</html>