Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MutationEvent

deprecated

Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.

@deprecated

DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.

interface MutationEvent extends Event {
readonly ADDITION: number;
readonly attrChange: number;
readonly attrName: string;
readonly MODIFICATION: number;
readonly newValue: string;
readonly prevValue: string;
readonly relatedNode: Node | null;
readonly REMOVAL: number;
initMutationEvent(
typeArg: string,
bubblesArg?: boolean,
cancelableArg?: boolean,
relatedNodeArg?: Node | null,
prevValueArg?: string,
newValueArg?: string,
attrNameArg?: string,
attrChangeArg?: number,
): void;
}
var MutationEvent: {
prototype: MutationEvent;
readonly ADDITION: number;
readonly MODIFICATION: number;
readonly REMOVAL: number;
new (): MutationEvent;
}
;

§Extends

§Properties

§
readonly ADDITION: number
[src]
§
readonly attrChange: number
[src]
§
readonly attrName: string
[src]
§
readonly MODIFICATION: number
[src]
§
readonly newValue: string
[src]
§
readonly prevValue: string
[src]
§
readonly relatedNode: Node | null
[src]
§
readonly REMOVAL: number
[src]

§Methods

§
initMutationEvent(
typeArg: string,
bubblesArg?: boolean,
cancelableArg?: boolean,
relatedNodeArg?: Node | null,
prevValueArg?: string,
newValueArg?: string,
attrNameArg?: string,
attrChangeArg?: number,
): void
[src]