| 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="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> | 5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> |
| 6 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru
"> | 6 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru
"> |
| 7 <meta name="assert" content="Template element can be a descendant of the body el
ement"> | 7 <meta name="assert" content="Template element can be a descendant of the body el
ement"> |
| 8 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#tem
plate-element"> | 8 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#tem
plate-element"> |
| 9 <script src="../../../../../../../resources/testharness.js"></script> | 9 <script src="../../../../../../../resources/testharness.js"></script> |
| 10 <script src="../../../../../../../resources/testharnessreport.js"></script> | 10 <script src="../../../../../../../resources/testharnessreport.js"></script> |
| 11 <script src='../testcommon.js'></script> | 11 <script src='/html/resources/common.js'></script> |
| 12 <link rel="stylesheet" href="../../../../../../../resources/testharness.css"> | 12 <link rel="stylesheet" href="../../../../../../../resources/testharness.css"> |
| 13 </head> | 13 </head> |
| 14 <body> | 14 <body> |
| 15 <div id="log"></div> | 15 <div id="log"></div> |
| 16 <script type="text/javascript"> | 16 <script type="text/javascript"> |
| 17 | 17 |
| 18 function templateIsAChild(element) { | 18 function templateIsAChild(element) { |
| 19 element.innerHTML = '<template>some text</template>'; | 19 element.innerHTML = '<template>some text</template>'; |
| 20 | 20 |
| 21 assert_not_equals(element.querySelector('template'), null, | 21 assert_not_equals(element.querySelector('template'), null, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 ['Template element as an indirect descendant of the FRAMESET elem
ent. ' + | 106 ['Template element as an indirect descendant of the FRAMESET elem
ent. ' + |
| 107 'Template element is appended by appendChild()', | 107 'Template element is appended by appendChild()', |
| 108 doc, frameset] | 108 doc, frameset] |
| 109 ]; | 109 ]; |
| 110 generate_tests(templateIsAnAppendedIndirectChild, parameters, | 110 generate_tests(templateIsAnAppendedIndirectChild, parameters, |
| 111 'Template element as a descendant of the HEAD, BODY and FRAMESET element
s'); | 111 'Template element as a descendant of the HEAD, BODY and FRAMESET element
s'); |
| 112 | 112 |
| 113 </script> | 113 </script> |
| 114 </body> | 114 </body> |
| 115 </html> | 115 </html> |
| OLD | NEW |