OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>HTML Templates: Node document of the template content attribute must be t
emplate contents owner</title> | 4 <title>HTML Templates: Node document of the template content attribute must be t
emplate contents owner</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="mailto:a.semenov@unipro.ru
"> | 6 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru
"> |
7 <meta name="assert" content="Node document of the template content attribute mus
t be template contents owner"> | 7 <meta name="assert" content="Node document of the template content attribute mus
t be template contents owner"> |
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 test(function() { | 18 test(function() { |
19 var doc = newHTMLDocument(); | 19 var doc = newHTMLDocument(); |
20 var template = doc.createElement('template'); | 20 var template = doc.createElement('template'); |
21 var nestedTemplate = doc.createElement('template'); | 21 var nestedTemplate = doc.createElement('template'); |
(...skipping 29 matching lines...) Expand all Loading... |
51 // verify that multiple templates share the same instance of template conten
ts owner | 51 // verify that multiple templates share the same instance of template conten
ts owner |
52 | 52 |
53 assert_equals(template1.content.ownerDocument, template2.content.ownerDocume
nt, | 53 assert_equals(template1.content.ownerDocument, template2.content.ownerDocume
nt, |
54 'Wrong node document of the template content attribute'); | 54 'Wrong node document of the template content attribute'); |
55 }, 'Node document of the template content attribute must be template contents ow
ner. ' + | 55 }, 'Node document of the template content attribute must be template contents ow
ner. ' + |
56 'Load HTML file with multiple template elements'); | 56 'Load HTML file with multiple template elements'); |
57 | 57 |
58 </script> | 58 </script> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |