blob: fa0d277b4b39a12c86cf1a5865cd8ac9563d2dfd [file] [log] [blame]
<!DOCTYPE html>
<head>
<link rel=import href="resources/template-import.html">
</head>
<body onload="runTest()">
<script src="../../../resources/js-test.js"></script>
<script>
jsTestIsAsync = true;
description('HTMLTemplateElement content ownerDocument in HTML imports should differ from import document');
function runTest() {
var link = document.querySelector('link[rel=import]');
var importDocument = link.import;
window.template = importDocument.querySelector('template');
shouldNotBe("template.ownerDocument", "template.content.ownerDocument");
finishJSTest();
}
</script>
</body>