interface dom.HTMLElement
implements Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement
import { type dom } from "https://deno.land/x/evt@v2.5.3/mod.ts";
const { HTMLElement } = dom;
Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.
Methods
addEventListener<K extends keyof HTMLElementEventMap>(): void
type: K,
listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof HTMLElementEventMap>(): void
type: K,
listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,