summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/query-target-in-load-event.html
blob: 2835286f96dc78f4d94a49f88347c10e85410d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<iframe></iframe>

<script>
  let test = async_test('document.querySelector(":target") must work when called in the window.load event');
  let iframe = document.querySelector("iframe");
  window.addEventListener("message", test.step_func_done(event => {
    assert_equals(event.data, "PASS");
  }));
  iframe.src = "./query-target-in-load-event.part.html#target";
</script>