| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>HTML Templates: The template contents owner document type is HTML documen
t</title> | 4 <title>HTML Templates: The template contents owner document type is HTML documen
t</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 owner document type is HTML d
ocument, if template is declared in HTML document"> | 6 <meta name="assert" content="The template contents owner document type is HTML d
ocument, if template is declared in HTML document"> |
| 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 testInIFrame('../resources/template-contents.html', function(context) { | 17 testInIFrame('../resources/template-contents.html', function(context) { |
| 18 var doc = context.iframes[0].contentDocument; | 18 var doc = context.iframes[0].contentDocument; |
| 19 var template = doc.querySelector('template'); | 19 var template = doc.querySelector('template'); |
| 20 | 20 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 var template = doc.querySelector('template'); | 63 var template = doc.querySelector('template'); |
| 64 | 64 |
| 65 assert_class_string(template.content.ownerDocument, 'HTMLDocument', | 65 assert_class_string(template.content.ownerDocument, 'HTMLDocument', |
| 66 'Template content owner should be a HTML document'); | 66 'Template content owner should be a HTML document'); |
| 67 | 67 |
| 68 }, 'The template contents owner document type is HTML document ' + | 68 }, 'The template contents owner document type is HTML document ' + |
| 69 '(case when document has no browsing context and the template is created via
innerHTML)'); | 69 '(case when document has no browsing context and the template is created via
innerHTML)'); |
| 70 </script> | 70 </script> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |