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

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

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

Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements.

Properties

disabled: boolean
readonly
elements: HTMLCollection
readonly
form: HTMLFormElement | null

Retrieves a reference to the form that the object is embedded in.

name: string
readonly
type: string
readonly
validationMessage: string

Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.

readonly
validity: ValidityState

Returns a ValidityState object that represents the validity states of an element.

readonly
willValidate: boolean

Returns whether an element will successfully validate based on forms validation rules and constraints.

Methods

checkValidity(): boolean

Returns whether a form will validate when it is submitted, without having to submit it.

reportValidity(): boolean
setCustomValidity(error: string): void

Sets a custom error message that is displayed when a form is submitted.

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