MCPcopy Create free account
hub / github.com/nodejs/node / addIframe

Function addIframe

test/fixtures/wpt/encoding/streams/invalid-realm.window.js:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3// Adds an iframe to the document and returns it.
4function addIframe() {
5 const iframe = document.createElement('iframe');
6 document.body.appendChild(iframe);
7 return iframe;
8}
9
10promise_test(async t => {
11 const iframe = addIframe();

Callers 1

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected