blob: cda7c1da73dc9a2a9f68e8e60806bc2b8e385c7f [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/js-test.js"></script>
<script>
description("Element.querySelector matching nth-child of loose subtree.");
var root = document.createElement("div");
for (var i = 0; i < 12; i++) {
var child = document.createElement("span");
if (i == 11)
child.id = "pass";
root.appendChild(child);
}
shouldBe('root.querySelector(":nth-child(12)").id', '"pass"');
</script>