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

x/evt/lib/index.ts>dom.HTMLModElement

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

Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is and .

Properties

cite: string

Sets or retrieves reference information about the object.

dateTime: string

Sets or retrieves the date and time of a modification to the object.

Methods

addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void