summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/query-target-in-load-event.part.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/dom/nodes/query-target-in-load-event.part.html')
-rw-r--r--testing/web-platform/tests/dom/nodes/query-target-in-load-event.part.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/dom/nodes/query-target-in-load-event.part.html b/testing/web-platform/tests/dom/nodes/query-target-in-load-event.part.html
new file mode 100644
index 0000000000..7eb1baf15f
--- /dev/null
+++ b/testing/web-platform/tests/dom/nodes/query-target-in-load-event.part.html
@@ -0,0 +1,10 @@
+<!-- Used by ./query-target-in-load-event.html -->
+<script>
+ window.onload = function() {
+ let target = document.querySelector(":target");
+ let expected = document.querySelector("#target");
+ window.parent.postMessage(target == expected ? "PASS" : "FAIL", "*");
+ };
+</script>
+
+<div id="target"></div>