Files
react-native-devtools-frontend/node_modules/dom5/lib/modification.d.ts
T
Tim van der Lippe 1fe7f95b0e Add eslint-plugin-lit-a11y to manage_node_deps
This also adds the MPL-2.0 license as valid license to our allowed
licenses list.

R=jacktfranklin@chromium.org
DISABLE_THIRD_PARTY_CHECK=NPM update

Change-Id: I2a3bee2ffc0b328a0579ab62ab27f938bdc876c8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2593130
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-05 13:13:19 +00:00

27 lines
1.3 KiB
TypeScript

import { ASTNode as Node } from 'parse5';
export { ASTNode as Node } from 'parse5';
export declare function cloneNode(node: Node): Node;
export declare function replace(oldNode: Node, newNode: Node): void;
export declare function remove(node: Node): void;
export declare function insertBefore(parent: Node, target: Node, newNode: Node): void;
export declare function insertAfter(parent: Node, target: Node, newNode: Node): void;
/**
* Removes a node and places its children in its place. If the node
* has no parent, the operation is impossible and no action takes place.
*/
export declare function removeNodeSaveChildren(node: Node): void;
/**
* When parse5 parses an HTML document with `parse`, it injects missing root
* elements (html, head and body) if they are missing. This function removes
* these from the AST if they have no location info, so it requires that
* the `parse5.parse` be used with the `locationInfo` option of `true`.
*/
export declare function removeFakeRootElements(ast: Node): void;
export declare function append(parent: Node, newNode: Node): void;
export declare const constructors: {
text: (value: string) => Node;
comment: (comment: string) => Node;
element: (tagName: string, namespace?: string | undefined) => Node;
fragment: () => Node;
};