OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>HTML Templates: ownerDocument of cloned template content is set to templa
te content owner</title> | 4 <title>HTML Templates: ownerDocument of cloned template content is set to templa
te content 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="a.semenov@unipro.ru"> | 6 <meta name="author" title="Aleksei Yu. Semenov" href="a.semenov@unipro.ru"> |
7 <meta name="assert" content="ownerDocument of cloned template content is set to
template content owner"> | 7 <meta name="assert" content="ownerDocument of cloned template content is set to
template content owner"> |
8 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#nod
e-clone-additions"> | 8 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#nod
e-clone-additions"> |
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 checkOwnerDocument(node, doc) { | 18 function checkOwnerDocument(node, doc) { |
19 if ((node !== null) && (node !== undefined)) { | 19 if ((node !== null) && (node !== undefined)) { |
20 assert_equals(node.ownerDocument, doc, | 20 assert_equals(node.ownerDocument, doc, |
21 'Wrong ownerDocument of the template copy\'s node ' + node.nodeN
ame); | 21 'Wrong ownerDocument of the template copy\'s node ' + node.nodeN
ame); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 var copy = template.cloneNode(true); | 118 var copy = template.cloneNode(true); |
119 | 119 |
120 checkOwnerDocument(copy.content, template.content.ownerDocument); | 120 checkOwnerDocument(copy.content, template.content.ownerDocument); |
121 | 121 |
122 }, 'ownerDocument of cloned template content is set to template content owner. ' | 122 }, 'ownerDocument of cloned template content is set to template content owner. ' |
123 + 'Test loading HTML document from file'); | 123 + 'Test loading HTML document from file'); |
124 | 124 |
125 </script> | 125 </script> |
126 </body> | 126 </body> |
127 </html> | 127 </html> |
OLD | NEW |