tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

embed-represent-nothing-04.html (912B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>HTML Test: The embed element represents nothing when it is never being rendered</title>
      4 <link rel="author" title="Peng Zhou" href="mailto:zhoupeng.1996@bytedance.com">
      5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element">
      6 <meta name="assert" content="Check if the embed element represents nothing when it is never being rendered">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <style>
     10  #target {
     11    display: none;
     12  }
     13 </style>
     14 <body>
     15  <script>
     16  async_test(t => {
     17    window.childLoaded = false;
     18    addEventListener('load', t.step_func_done(() => {
     19      assert_true(!!document.querySelector('embed'));
     20      assert_false(window.childLoaded);
     21    }));
     22  }, 'ensure the element represents nothing');
     23  </script>
     24  <embed id="target" src="embed-iframe.html"></embed>
     25 </body>