| <script src="../../resources/js-test-pre.js"></script> |
| <div style="display:none"> |
| <!-- Correct sequence. --> |
| <blockquote></blockquote> |
| <!-- Lacks the ending <li>. --> |
| <blockquote></blockquote> |
| <!-- Lacks the <blockquote>. --> |
| <!-- Lacks the middle <li>. --> |
| <blockquote></blockquote> |
| <!-- Lacks the <div>. --> |
| <blockquote></blockquote> |
| <span id=target>Target</span> |
| description('Test backtracking with a long sequence of direct sibling relations.'); |
| shouldBe('document.querySelectorAll("li+div+li+blockquote+li~span").length', '1'); |
| shouldBeEqualToString('document.querySelectorAll("li+div+li+blockquote+li~span")[0].id', 'target'); |
| <script src="../../resources/js-test-post.js"></script> |