tor-browser

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

embed-represent-nothing-02.html (852B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>HTML Test: The embed element represents nothing when its type and src attributs are removed</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element">
      6 <link rel="match" href="embed-represent-nothing-ref.html">
      7 <meta name="assert" content="Check if the embed element represents nothing when its src and type attributes are removed">
      8 <style>
      9  embed {
     10    background-color: red;
     11    height: 100px;
     12    width: 100px;
     13  }
     14 </style>
     15 <body>
     16  <p>Test passes if there is <strong>no red</strong>.</p>
     17  <embed id="embed" src="/images/red-16x16.png" type="image/png">
     18  <script>
     19    document.getElementById("embed").removeAttribute("src");
     20    document.getElementById("embed").removeAttribute("type");
     21  </script>
     22 </body>