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

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

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

Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of elements.

Properties

defaultValue: string
readonly
form: HTMLFormElement | null
readonly
htmlFor: DOMTokenList
readonly
labels: NodeListOf<HTMLLabelElement>
name: string
readonly
type: string
readonly
validationMessage: string
readonly
validity: ValidityState
value: string
readonly
willValidate: boolean

Methods

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