async_011.htm (910B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>An empty parser-inserted script element should return async=true</title> 5 <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 6 <meta description="An empty parser-inserted script element should return async=true." /> 7 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 8 <link rel="help" href="https://html.spec.whatwg.org/multipage/#prepare-a-script"/> 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></script> 15 <script type="text/javascript"> 16 test(function() { assert_true(document.getElementsByTagName("script")[2].async)}, "An empty parser-inserted script element should return async=true"); 17 </script> 18 </body> 19 </html>