tor-browser

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

async_009.htm (1091B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>Document.write() silently fails from an Async script</title>
      5        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
      6        <meta description="This test ensures Document.write() silently fails from an Async script." />
      7        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      8        <link rel="help" href="https://html.spec.whatwg.org/multipage/#execute-the-script-block"/>
      9        <script src="/resources/testharness.js"></script>
     10        <script src="/resources/testharnessreport.js"></script>
     11        <script type="text/javascript">
     12        var t = async_test("Document.write() silently fails from an Async script");
     13 
     14        var log = t.step_func(function() {
     15          document.write("<span id='writtenText'></span>");
     16          assert_equals(null, document.getElementById('writtenText'));
     17          t.done();
     18        });
     19        </script>
     20    </head>
     21    <body>
     22        <div id=log></div>
     23        <script type="text/javascript" src="log.py?sec=1&id=1" async></script>
     24    </body>
     25 </html>