MCPcopy
hub / github.com/ampproject/amphtml / writeFriendlyFrame

Function writeFriendlyFrame

test/integration/test-amphtml-ads.js:493–497  ·  view source on GitHub ↗

* Write the HTML page into the provided iframe then add it to the document.

(doc, iframe, adContent)

Source from the content-addressed store, hash-verified

491 * Write the HTML page into the provided iframe then add it to the document.
492 */
493function writeFriendlyFrame(doc, iframe, adContent) {
494 doc.body.appendChild(iframe);
495 iframe.contentDocument.write(adContent);
496 iframe.contentDocument.close();
497}
498
499/**
500 * Write the HTML page into the provided iframe, turn it into a safe frame

Callers 1

Calls 2

writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected