"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomIframe = void 0;
const index_js_1 = require("../model/index.js");
class DomIframe extends index_js_1.Pipe {
    async apply(inputSet, _ctx) {
        return await this.map(inputSet, async (el) => {
            return await el.contentDocument();
        });
    }
}
exports.DomIframe = DomIframe;
DomIframe.$type = 'DOM.iframe';
DomIframe.$help = `
Returns DOM contentDocument node of the IFRAME element.
An error is thrown if applied to non-frame elements.

### Use For

- accessing the contents of iframes
`;
//# sourceMappingURL=DOM.iframe.js.map