ajsfw
Version:
Ajs Framework
37 lines (36 loc) • 1.3 kB
TypeScript
import { INode } from "./INode";
import { INodeList } from "./INodeList";
import { IDocument } from "./IDocument";
import { IElement } from "./IElement";
export default class Node implements INode {
static readonly ELEMENT_NODE: number;
static readonly TEXT_NODE: number;
static readonly COMMENT_NODE: number;
static readonly DOCUMENT_NODE: number;
private __nodeType;
private __nodeName;
private __parentNode;
private __ownerDocument;
private __childNodes;
protected _nodeValue: string;
previousSibling: INode;
nextSibling: INode;
constructor(nodeType: number, nodeName: string, ownerDocument: IDocument);
readonly ownerDocument: IDocument;
readonly nodeType: number;
readonly nodeName: string;
parentNode: INode;
readonly parentElement: IElement;
nodeValue: string;
readonly textContent: string;
readonly innerText: string;
hasChildNodes(): boolean;
contains(node: INode): boolean;
readonly childNodes: INodeList;
readonly firstChild: INode;
readonly lastChild: INode;
appendChild(node: INode): INode;
insertBefore(newNode: INode, beforeNode: INode): INode;
replaceChild(newNode: INode, oldNode: INode): INode;
removeChild(node: INode): void;
}