OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html xmlns="http://www.w3.org/1999/xhtml"> | 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 description('Test HTMLTemplateElement content ownerDocument in XHTML Document'); | 6 description('Test HTMLTemplateElement content ownerDocument in XHTML Document'); |
7 | 7 |
8 shouldBeFalse('document instanceof HTMLDocument'); | 8 shouldBeFalse('document instanceof HTMLDocument'); |
9 var template4 = document.createElement('template'); | 9 var template4 = document.createElement('template'); |
10 var templateContentOwnerDocument = template4.content.ownerDocument; | 10 var templateContentOwnerDocument = template4.content.ownerDocument; |
11 shouldNotBe('document', 'templateContentOwnerDocument'); | 11 shouldNotBe('document', 'templateContentOwnerDocument'); |
12 shouldBeFalse('templateContentOwnerDocument instanceof HTMLDocument'); | 12 shouldBeFalse('templateContentOwnerDocument instanceof HTMLDocument'); |
13 | 13 |
14 </script> | 14 </script> |
15 <script src="../../js/resources/js-test-post.js"></script> | |
16 </html> | 15 </html> |
OLD | NEW |