Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: LayoutTests/fast/dom/Attr/set-attribute-node-from-iframe.html

Issue 17583003: Set Attr.ownerDocument in Element#setAttributeNode() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed the point. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Attr/set-attribute-node-from-iframe-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <iframe></iframe>
8 <div id="toBeMoved"></div>
9 <script>
10 description("ownerDocument of Attr should be set on setAttributeNode");
11 elementToBeMoved = document.getElementById("toBeMoved");
12 iframeElement = document.getElementsByTagName("iframe")[0];
13 iframeDocument = iframeElement.contentWindow.document;
14 attr = iframeDocument.createAttribute("foo");
15 shouldBe("attr.ownerDocument", "iframeDocument")
16 elementToBeMoved.setAttributeNode(attr);
17 shouldBe("attr.ownerDocument", "document")
18 iframeDocument.documentElement.appendChild(elementToBeMoved);
19 shouldBe("attr.ownerDocument", "iframeDocument")
20 </script>
21 <script src="../../js/resources/js-test-post.js"></script>
22 </body>
23 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Attr/set-attribute-node-from-iframe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698