| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>HTML Templates: The template contents is a DocumentFragment</title> | 4 <title>HTML Templates: The template contents is a DocumentFragment</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="The template contents must be a DocumentFragment"> | 6 <meta name="assert" content="The template contents must be a DocumentFragment"> |
| 7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#def
initions"> | 7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#def
initions"> |
| 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 | 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'); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 assert_equals(nestedTemplate.content.nodeType, Node.DOCUMENT_FRAGMENT_NODE, | 164 assert_equals(nestedTemplate.content.nodeType, Node.DOCUMENT_FRAGMENT_NODE, |
| 165 'Nested template content should be a documentFragment'); | 165 'Nested template content should be a documentFragment'); |
| 166 assert_class_string(nestedTemplate.content, 'DocumentFragment', | 166 assert_class_string(nestedTemplate.content, 'DocumentFragment', |
| 167 'Nested template content class should be a DocumentFragment'); | 167 'Nested template content class should be a DocumentFragment'); |
| 168 | 168 |
| 169 }, 'The template contents must be a DocumentFragment (the template tag ' | 169 }, 'The template contents must be a DocumentFragment (the template tag ' |
| 170 + 'with nested template tag inside HTML file loaded in iframe)'); | 170 + 'with nested template tag inside HTML file loaded in iframe)'); |
| 171 </script> | 171 </script> |
| 172 </body> | 172 </body> |
| 173 </html> | 173 </html> |
| OLD | NEW |