2 <html class=
"reftest-wait">
6 function frameDoc() { return document
.getElementById("f").contentDocument
; }
9 // Create an element in the iframe.
10 var div
= frameDoc().createElement("div");
12 // Force a wrapper to be created for .style.
13 var style
= div
.style
;
14 style
.color
= "green";
16 // Adopt the element out of the iframe, leaving the |style| behind.
17 document
.adoptNode(div
);
25 // Force an iteration over all the wrappers in frameDoc's scope, causing
26 // us to notice the orphan.
27 frameDoc().write("2");
30 document
.documentElement
.removeAttribute("class");
35 <body onload=
"boom();"><iframe id=
"f" srcdoc=
"1"></iframe></body>