<script>
if (window.testRunner)
    testRunner.dumpAsText();

root = document.createElement("body");
d = document.implementation.createDocument(null, "test");
d.adoptNode(root);
node = document.createElement("title");
root.appendChild(node);
node.setAttribute("style", "zoom:document;")
node.appendChild(node.cloneNode());
</script>
<body>
This test passes if it does not crash.
</body>
