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