happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
157 lines • 3.54 kB
TypeScript
import Event from '../../event/Event.cjs';
import * as PropertySymbol from '../../PropertySymbol.cjs';
import BrowserWindow from '../../window/BrowserWindow.cjs';
import Document from '../document/Document.cjs';
import HTMLElement from '../html-element/HTMLElement.cjs';
import CrossOriginBrowserWindow from '../../window/CrossOriginBrowserWindow.cjs';
import DOMTokenList from '../../dom/DOMTokenList.cjs';
import Attr from '../attr/Attr.cjs';
/**
* HTML Iframe Element.
*
* Reference:
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.
*/
export default class HTMLIFrameElement extends HTMLElement {
#private;
cloneNode: (deep?: boolean) => HTMLIFrameElement;
[PropertySymbol.sandbox]: DOMTokenList | null;
get onload(): ((event: Event) => void) | null;
set onload(value: ((event: Event) => void) | null);
get onerror(): ((event: Event) => void) | null;
set onerror(value: ((event: Event) => void) | null);
/**
* Returns source.
*
* @returns Source.
*/
get src(): string;
/**
* Sets source.
*
* @param src Source.
*/
set src(src: string);
/**
* Returns allow.
*
* @returns Allow.
*/
get allow(): string;
/**
* Sets allow.
*
* @param allow Allow.
*/
set allow(allow: string);
/**
* Returns height.
*
* @returns Height.
*/
get height(): string;
/**
* Sets height.
*
* @param height Height.
*/
set height(height: string);
/**
* Returns width.
*
* @returns Width.
*/
get width(): string;
/**
* Sets width.
*
* @param width Width.
*/
set width(width: string);
/**
* Returns name.
*
* @returns Name.
*/
get name(): string;
/**
* Sets name.
*
* @param name Name.
*/
set name(name: string);
/**
* Returns sandbox.
*
* @returns Sandbox.
*/
get sandbox(): DOMTokenList;
/**
* Sets sandbox.
*/
set sandbox(sandbox: string);
/**
* Returns srcdoc.
*
* @returns Srcdoc.
*/
get srcdoc(): string;
/**
* Sets srcdoc.
*
* @param srcdoc Srcdoc.
*/
set srcdoc(srcdoc: string);
/**
* Returns referrer policy.
*/
get referrerPolicy(): string;
/**
* Sets referrer policy.
*
* @param referrerPolicy Referrer policy.
*/
set referrerPolicy(referrerPolicy: string);
/**
* Returns content document.
*
* @returns Content document.
*/
get contentDocument(): Document | null;
/**
* Returns content window.
*
* @returns Content window.
*/
get contentWindow(): BrowserWindow | CrossOriginBrowserWindow | null;
/**
* @override
*/
get tabIndex(): number;
/**
* @override
*/
set tabIndex(tabIndex: number);
/**
* @override
*/
[PropertySymbol.connectedToDocument](): void;
/**
* Called when disconnected from document.
* @param e
*/
[PropertySymbol.disconnectedFromDocument](): void;
/**
* @override
*/
[PropertySymbol.cloneNode](deep?: boolean): HTMLIFrameElement;
/**
* @override
*/
[PropertySymbol.onSetAttribute](attribute: Attr, replacedAttribute: Attr | null): void;
/**
* @override
*/
[PropertySymbol.onRemoveAttribute](removedAttribute: Attr): void;
}
//# sourceMappingURL=HTMLIFrameElement.d.ts.map