| Index: LayoutTests/fast/dom/Attr/set-attribute-node-from-iframe.html
|
| diff --git a/LayoutTests/fast/dom/Attr/set-attribute-node-from-iframe.html b/LayoutTests/fast/dom/Attr/set-attribute-node-from-iframe.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..56e87d1d500cf91ba1ef87bc3410039529f5dbb2
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/Attr/set-attribute-node-from-iframe.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
| +<html>
|
| +<head>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +</head>
|
| +<body>
|
| +<iframe></iframe>
|
| +<div id="toBeMoved"></div>
|
| +<script>
|
| +description("ownerDocument of Attr should be set on setAttributeNode");
|
| +elementToBeMoved = document.getElementById("toBeMoved");
|
| +iframeElement = document.getElementsByTagName("iframe")[0];
|
| +iframeDocument = iframeElement.contentWindow.document;
|
| +attr = iframeDocument.createAttribute("foo");
|
| +shouldBe("attr.ownerDocument", "iframeDocument")
|
| +elementToBeMoved.setAttributeNode(attr);
|
| +shouldBe("attr.ownerDocument", "document")
|
| +iframeDocument.documentElement.appendChild(elementToBeMoved);
|
| +shouldBe("attr.ownerDocument", "iframeDocument")
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
| +</body>
|
| +</html>
|
|
|