summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/query-target-in-load-event.part.html
blob: 7eb1baf15f05f95545a563fe216eac0655c38a74 (plain)
1
2
3
4
5
6
7
8
9
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>