async_001.htm (914B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Async property on a dynamically-created script is true by default</title> 5 <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 6 <meta description="This test checks the Async property on a dynamically-created script element. By default it should be true." /> 7 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 8 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-script-async"/> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 </head> 12 <body> 13 <div id=log></div> 14 <script type="text/javascript"> 15 test(function() {assert_true(document.createElement("script").async)}, "Async property on a dynamically-created script is true by default"); 16 </script> 17 </body> 18 </html>