summaryrefslogtreecommitdiffstats
path: root/dom/base/test/test_document.all_iteration.html
blob: a5140d9df1145389626ce5796c146ee4944fd3e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<meta charset=utf-8>
<title>Test for document.all iteration behavior</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
  assert_array_equals([...document.all], document.getElementsByTagName("*"));
}, "document.all should be iterable");
</script>