OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>HTML Templates: Clone template node: All the children of template content
are copied if 'copy children flag' set to true</title> | 4 <title>HTML Templates: Clone template node: All the children of template content
are copied if 'copy children flag' set to true</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="assert" content="Clone template node: all the children of template c
ontent are copied if 'copy children flag' set to true"> | 6 <meta name="assert" content="Clone template node: all the children of template c
ontent are copied if 'copy children flag' set to true"> |
7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#nod
e-clone-additions"> | 7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#nod
e-clone-additions"> |
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 test(function () { | 17 test(function () { |
18 var doc = newHTMLDocument(); | 18 var doc = newHTMLDocument(); |
19 doc.body.innerHTML = '<template id="tmpl1">' + | 19 doc.body.innerHTML = '<template id="tmpl1">' + |
20 '<div id="div1">This is div inside template</div>' + | 20 '<div id="div1">This is div inside template</div>' + |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 assert_equals(copy.content.childNodes.length, 0, | 75 assert_equals(copy.content.childNodes.length, 0, |
76 'Wrong number of template content\'s copy child nodes'); | 76 'Wrong number of template content\'s copy child nodes'); |
77 | 77 |
78 }, 'Clone template node. Test call to cloneNode(false)'); | 78 }, 'Clone template node. Test call to cloneNode(false)'); |
79 | 79 |
80 | 80 |
81 </script> | 81 </script> |
82 </body> | 82 </body> |
83 </html> | 83 </html> |
OLD | NEW |