Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Calling getElementsByName with the same argument</title>
<link rel="author" title="Ms2ger" href="">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<div id="test">
<div name="abcd"></div>
test(function() {
var list1 = document.getElementsByName("abcd");
var list2 = document.getElementsByName("abcd");
assert_true(list1 === list2 || list1 !== list2);
}, "The user agent may return the same object as the object returned by the earlier call.");