mutation-summary
Version:
Makes observing the DOM fast and easy
21 lines (20 loc) • 826 B
TypeScript
import { IStringMap } from "./IStringMap";
export declare class NodeChange {
node: Node;
childList: boolean;
attributes: boolean;
characterData: boolean;
oldParentNode: Node;
added: boolean;
private attributeOldValues;
characterDataOldValue: string;
isCaseInsensitive: boolean;
constructor(node: Node, childList?: boolean, attributes?: boolean, characterData?: boolean, oldParentNode?: Node, added?: boolean, attributeOldValues?: IStringMap<string>, characterDataOldValue?: string);
getAttributeOldValue(name: string): string;
getAttributeNamesMutated(): string[];
attributeMutated(name: string, oldValue: string): void;
characterDataMutated(oldValue: string): void;
removedFromParent(parent: Node): void;
insertedIntoParent(): void;
getOldParent(): Node;
}