import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { HTMLTextAreaElement } = dom;
Provides special properties and methods for manipulating the layout and presentation of elements.
Properties
Retrieves a reference to the form that the object is embedded in.
Sets or retrieves the maximum number of characters that the user can enter in a text control.
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
Sets or retrieves the value indicated whether the content of the object is read-only.
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.
Returns a ValidityState object that represents the validity states of an element.
Returns whether an element will successfully validate based on forms validation rules and constraints.
Methods
Returns whether a form will validate when it is submitted, without having to submit it.
Sets a custom error message that is displayed when a form is submitted.
Sets the start and end positions of a selection in a text field.