blob: e6cfc102c7fbaacc1252e6fcbfd2d89ee48160da [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<div id="target"></div>
<script>
var target = document.getElementById("target");
var attr = target.attributes[0];
var anotherDocument = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "", null);
anotherDocument.title = "Hello";
anotherDocument.adoptNode(target);
shouldBe("attr.ownerDocument.title", "anotherDocument.title");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>