Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLFieldSetElement

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.

interface HTMLFieldSetElement extends HTMLElement {
disabled: boolean;
readonly elements: HTMLCollection;
readonly form: HTMLFormElement | null;
name: string;
readonly type: string;
readonly validationMessage: string;
readonly validity: ValidityState;
readonly willValidate: boolean;
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;
checkValidity(): boolean;
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;
reportValidity(): boolean;
setCustomValidity(error: string): void;
}
var HTMLFieldSetElement: {
prototype: HTMLFieldSetElement;
}
;

§Extends

§Properties

§
disabled: boolean
[src]
§
readonly elements: HTMLCollection
[src]

Returns an HTMLCollection of the form controls in the element.

§
readonly form: HTMLFormElement | null
[src]

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

§
name: string
[src]
§
readonly type: string
[src]

Returns the string "fieldset".

§
readonly validationMessage: string
[src]

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
[src]

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

§
readonly willValidate: boolean
[src]

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

§Methods

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

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

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

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

@param error

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