Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<head>
<title>getElementsByName and the param element</title>
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<div id="test">
<param name="test1"/>
<object>
<param name="test2"/>
</object>
</div>
<script>
test(function() {
assert_equals(document.getElementsByName("test1").length, 1);
assert_equals(document.getElementsByName("test1")[0],
document.getElementsByTagName("param")[0]);
assert_equals(document.getElementsByName("test2").length, 1);
assert_equals(document.getElementsByName("test2")[0],
document.getElementsByTagName("param")[1]);
});
</script>
</body>
</html>