about summary refs log tree commit diff stats
path: root/test/js/query_selector_plus.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/query_selector_plus.html')
-rw-r--r--test/js/query_selector_plus.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/js/query_selector_plus.html b/test/js/query_selector_plus.html
new file mode 100644
index 00000000..0bbe1677
--- /dev/null
+++ b/test/js/query_selector_plus.html
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML>
+<div id=success>Fail</div>
+<script one>
+</script>
+<script two>
+</script>
+<script>
+if (document.querySelector("script[one] + script").attributes["two"]) {
+	document.getElementById("success").textContent = "Success";
+}
+</script>