tor-browser

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

template-descendant-head.html (987B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>HTML Templates: Template element as a descendant of the head element.</title>
      5 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
      6 <meta name="assert" content="Template element can be a descendant of the head element">
      7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#template-element">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src='/html/resources/common.js'></script>
     11 </head>
     12 <body>
     13 <div id="log"></div>
     14 <script type="text/javascript">
     15 
     16 testInIFrame('../resources/template-descendant-head.html', function(context) {
     17    var doc = context.iframes[0].contentDocument;
     18 
     19    assert_not_equals(doc.head.querySelector('template'), null,
     20        'Template element should be a descendant of the head element');
     21 
     22 }, 'Template element as a descendant of the head element. Test loading from a file');
     23 
     24 </script>
     25 </body>
     26 </html>