summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-interface.html
blob: 97646e39cfc6d19c4ff19c2a0728b8355ce2dd4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<title>Document.getElementsByName: interfaces</title>
<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
<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>
<script>
test(function() {
  var collection = document.getElementsByName("name");
  assert_class_string(collection, "NodeList");
  assert_true(collection instanceof NodeList, "Should be a NodeList");
  assert_false(collection instanceof HTMLCollection,
               "Should not be a HTMLCollection");
});
</script>