4 <script src=
"../../resources/js-test.js"></script>
7 description("This tests accessing the length after accessing (length + 1)-th item in HTMLCollection doesn't cache a wrong length.");
9 var container
= document
.createElement('div');
10 var span
= document
.createElement('span');
12 shouldBe("children = container.children; children.length", "0");
13 shouldBe("container.appendChild(span); children[1]; children.length", "1");
14 shouldBe("container.removeChild(span); children.length", "0");