| <!DOCTYPE html> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <script src="../../../resources/js-test-pre.js"></script> |
| <script> |
| |
| description('Test HTMLTemplateElement content ownerDocument in XHTML Document'); |
| |
| if (!window.HTMLTemplateElement) |
| testFailed('This test requires ENABLE(TEMPLATE_ELEMENT)'); |
| |
| shouldBeFalse('document instanceof HTMLDocument'); |
| var template4 = document.createElement('template'); |
| var templateContentOwnerDocument = template4.content.ownerDocument; |
| shouldNotBe('document', 'templateContentOwnerDocument'); |
| shouldBeFalse('templateContentOwnerDocument instanceof HTMLDocument'); |
| |
| </script> |
| <script src="../../../resources/js-test-post.js"></script> |
| </html> |