5 <script src=
"../../resources/js-test.js"></script>
8 description('Should not be able to create an iframe with a loaded contentDocument that is not in the document tree.');
10 container
= document
.body
.appendChild(document
.createElement("div"));
11 helperDiv
= container
.appendChild(document
.createElement("div"));
12 helperFrame
= container
.appendChild(document
.createElement("iframe"));
14 helperFrame
.contentWindow
.onunload = function() {
15 shadowRoot
= helperDiv
.createShadowRoot();
16 innerFrame
= shadowRoot
.appendChild(document
.createElement("iframe"));
19 document
.body
.removeChild(container
);
21 shouldBe('innerFrame.contentDocument', 'null');