tor-browser

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

text-plain.html (1029B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3  <head>
      4    <meta charset="utf-8">
      5    <title id='title'>Media Types</title>
      6    <link rel="author" title="Philippe Le Hegaret" href="mailto:plh@w3.org"/>
      7    <link rel="help" href="https://html.spec.whatwg.org/multipage/#plugins"/>
      8    <script src="/resources/testharness.js"></script>
      9    <script src="/resources/testharnessreport.js"></script>
     10  </head>
     11 
     12  <body>
     13    <script>
     14      var t = async_test("A user agent must not consider the type text/plain as having a registered plugin.");
     15 
     16      window.onload =
     17        t.step_func(function() {
     18        assert_equals(document.getElementById("frameContext").contentDocument.body.firstChild.nodeName, "PRE");
     19        t.done();
     20      });
     21    </script>
     22 
     23    <h1>Test of plugin support</h1>
     24    <p class='assert'>A user agent must not consider the types text/plain and application/octet-stream as having a registered plugin.</p>
     25 
     26    <iframe id="frameContext" src="sample.txt"></iframe>
     27 
     28 
     29    <div id="log">Running test...</div>
     30 
     31  </body>
     32 </html>