OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>HTML Templates: Child nodes of template element in XHTML documents</title
> | 4 <title>HTML Templates: Child nodes of template element in XHTML documents</title
> |
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="a.semenov@unipro.ru"> | 6 <meta name="author" title="Aleksei Yu. Semenov" href="a.semenov@unipro.ru"> |
7 <meta name="assert" content="Child nodes of template element in XHTML documents
are always appended to the template content (instead of template itself)"> | 7 <meta name="assert" content="Child nodes of template element in XHTML documents
are always appended to the template content (instead of template itself)"> |
8 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#par
sing-xhtml-documents"> | 8 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#par
sing-xhtml-documents"> |
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 | 18 |
19 test(function() { | 19 test(function() { |
20 var doc = newXHTMLDocument(); | 20 var doc = newXHTMLDocument(); |
21 | 21 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 assert_equals(nestedTemplate.content.querySelectorAll('div').length, 2, | 95 assert_equals(nestedTemplate.content.querySelectorAll('div').length, 2, |
96 'Wrong number of template content child nodes'); | 96 'Wrong number of template content child nodes'); |
97 | 97 |
98 }, 'Child nodes of nested template element in XHTML documents must be appended t
o template content. ' | 98 }, 'Child nodes of nested template element in XHTML documents must be appended t
o template content. ' |
99 + 'Test loading XHTML document from a file'); | 99 + 'Test loading XHTML document from a file'); |
100 | 100 |
101 </script> | 101 </script> |
102 </body> | 102 </body> |
103 </html> | 103 </html> |
OLD | NEW |