chromium/third_party/blink/web_tests/external/wpt/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param.html

<!DOCTYPE html>
<title>getElementsByName and the param element</title>
<link rel="author" title="Ms2ger" href="mailto:[email protected]">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-getelementsbyname">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<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>