| Index: LayoutTests/fast/dom/SelectorAPI/document-fragment-nth.html
|
| diff --git a/LayoutTests/fast/dom/SelectorAPI/document-fragment-nth.html b/LayoutTests/fast/dom/SelectorAPI/document-fragment-nth.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b4cd8236866c0a0642b3bf2af6b81f281f9dbbb7
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/SelectorAPI/document-fragment-nth.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<script>
|
| +description("DocumentFragment.querySelector matching nth-child of fragment.");
|
| +
|
| +var fragment = document.createDocumentFragment();
|
| +for (var i = 0; i < 12; i++) {
|
| + var child = document.createElement("span");
|
| + if (i == 11)
|
| + child.id = "pass";
|
| + fragment.appendChild(child);
|
| +}
|
| +
|
| +shouldBe('fragment.querySelector(":nth-child(12)").id', '"pass"');
|
| +</script>
|
|
|