Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.MutationEvent

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.MutationEvent
implements Event
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { MutationEvent } = dom;

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

Properties

readonly
attrChange: number
readonly
attrName: string
readonly
newValue: string
readonly
prevValue: string
readonly
relatedNode: Node
readonly
ADDITION: number
readonly
MODIFICATION: number
readonly
REMOVAL: number

Methods

initMutationEvent(
typeArg: string,
canBubbleArg: boolean,
cancelableArg: boolean,
relatedNodeArg: Node,
prevValueArg: string,
newValueArg: string,
attrNameArg: string,
attrChangeArg: number,
): void