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