|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- import Event from '../../event/Event';
- import IWindow from '../../window/IWindow';
- import IDocument from '../document/IDocument';
- import HTMLElement from '../html-element/HTMLElement';
- import INode from '../node/INode';
- import IFrameCrossOriginWindow from './IFrameCrossOriginWindow';
- import IHTMLIFrameElement from './IHTMLIFrameElement';
- /**
- * HTML Iframe Element.
- *
- * Reference:
- * https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.
- */
- export default class HTMLIFrameElement extends HTMLElement implements IHTMLIFrameElement {
- #private;
- onload: (event: Event) => void | null;
- onerror: (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(): string;
- /**
- * Sets sandbox.
- *
- * @param sandbox Sandbox.
- */
- set sandbox(sandbox: string);
- /**
- * Returns srcdoc.
- *
- * @returns Srcdoc.
- */
- get srcdoc(): string;
- /**
- * Sets sandbox.
- *
- * @param srcdoc Srcdoc.
- */
- set srcdoc(srcdoc: string);
- /**
- * Returns content document.
- *
- * @returns Content document.
- */
- get contentDocument(): IDocument | null;
- /**
- * Returns content window.
- *
- * @returns Content window.
- */
- get contentWindow(): IWindow | IFrameCrossOriginWindow | null;
- /**
- * @override
- */
- _connectToNode(parentNode?: INode): void;
- /**
- * Clones a node.
- *
- * @override
- * @param [deep=false] "true" to clone deep.
- * @returns Cloned node.
- */
- cloneNode(deep?: boolean): IHTMLIFrameElement;
- }
|