Lines Matching refs:iframe
304 var iframe = document.createElement("iframe");
305 document.body.appendChild(iframe);
307 iframe.sandbox = ''; // Prevent external loads which could cause write() to return before completing the parse.
308 iframe.style.width = "600px"; // Have a reasonable size so we're not line-breaking on every character.
309 iframe.style.height = "800px";
310 iframe.contentDocument.open();
313 iframe.contentDocument.write(chunks[chunkIndex]);
316 if (iframe.contentDocument.body)
317 iframe.contentDocument.body.clientHeight; // Force a full layout/style-resolve.
318 else if (iframe.documentElement.localName == 'html')
319 iframe.contentDocument.documentElement.offsetWidth; // Force the painting.
322 iframe.contentDocument.close();
323 document.body.removeChild(iframe);