1 | export interface DOMAPI {
|
2 | createElement: (tagName: any, options?: ElementCreationOptions) => HTMLElement;
|
3 | createElementNS: (namespaceURI: string, qualifiedName: string, options?: ElementCreationOptions) => Element;
|
4 | |
5 |
|
6 |
|
7 |
|
8 | createDocumentFragment?: () => DocumentFragment;
|
9 | createTextNode: (text: string) => Text;
|
10 | createComment: (text: string) => Comment;
|
11 | insertBefore: (parentNode: Node, newNode: Node, referenceNode: Node | null) => void;
|
12 | removeChild: (node: Node, child: Node) => void;
|
13 | appendChild: (node: Node, child: Node) => void;
|
14 | parentNode: (node: Node) => Node | null;
|
15 | nextSibling: (node: Node) => Node | null;
|
16 | tagName: (elm: Element) => string;
|
17 | setTextContent: (node: Node, text: string | null) => void;
|
18 | getTextContent: (node: Node) => string | null;
|
19 | isElement: (node: Node) => node is Element;
|
20 | isText: (node: Node) => node is Text;
|
21 | isComment: (node: Node) => node is Comment;
|
22 | |
23 |
|
24 |
|
25 |
|
26 | isDocumentFragment?: (node: Node) => node is DocumentFragment;
|
27 | }
|
28 | export declare const htmlDomApi: DOMAPI;
|