2 <script src=
"../../../resources/js-test.js"></script>
4 description("DocumentFragment.querySelector matching nth-child of fragment.");
6 var fragment
= document
.createDocumentFragment();
7 for (var i
= 0; i
< 12; i
++) {
8 var child
= document
.createElement("span");
11 fragment
.appendChild(child
);
14 shouldBe('fragment.querySelector(":nth-child(12)").id', '"pass"');