import Node from '../node/Node.js'; import * as PropertySymbol from '../../PropertySymbol.js'; import IElement from '../element/IElement.js'; import IDocumentFragment from './IDocumentFragment.js'; import INode from '../node/INode.js'; import IHTMLCollection from '../element/IHTMLCollection.js'; import INodeList from '../node/INodeList.js'; import NodeTypeEnum from '../node/NodeTypeEnum.js'; /** * DocumentFragment. */ export default class DocumentFragment extends Node implements IDocumentFragment { readonly [PropertySymbol.children]: IHTMLCollection; [PropertySymbol.rootNode]: INode; [PropertySymbol.nodeType]: NodeTypeEnum; /** * Returns the document fragment children. */ get children(): IHTMLCollection; /** * Last element child. * * @returns Element. */ get childElementCount(): number; /** * First element child. * * @returns Element. */ get firstElementChild(): IElement; /** * Last element child. * * @returns Element. */ get lastElementChild(): IElement; /** * Get text value of children. * * @returns Text content. */ get textContent(): string; /** * Sets text content. * * @param textContent Text content. */ set textContent(textContent: string); /** * Inserts a set of Node objects or DOMString objects after the last child of the ParentNode. DOMString objects are inserted as equivalent Text nodes. * * @param nodes List of Node or DOMString. */ append(...nodes: (INode | string)[]): void; /** * Inserts a set of Node objects or DOMString objects before the first child of the ParentNode. DOMString objects are inserted as equivalent Text nodes. * * @param nodes List of Node or DOMString. */ prepend(...nodes: (INode | string)[]): void; /** * Replaces the existing children of a node with a specified new set of children. * * @param nodes List of Node or DOMString. */ replaceChildren(...nodes: (INode | string)[]): void; /** * Query CSS selector to find matching nodes. * * @param selector CSS selector. * @returns Matching elements. */ querySelectorAll(selector: string): INodeList; /** * Query CSS Selector to find matching node. * * @param selector CSS selector. * @returns Matching element. */ querySelector(selector: string): IElement; /** * Returns an element by ID. * * @param id ID. * @returns Matching element. */ getElementById(id: string): IElement; /** * Clones a node. * * @override * @param [deep=false] "true" to clone deep. * @returns Cloned node. */ cloneNode(deep?: boolean): IDocumentFragment; /** * @override */ appendChild(node: INode): INode; /** * @override */ removeChild(node: INode): INode; /** * @override */ insertBefore(newNode: INode, referenceNode: INode | null): INode; } //# sourceMappingURL=DocumentFragment.d.ts.map