Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/gauntlet/imports/happy_dom.ts>IHTMLInputElement

Work-in-progress front-end tool which does put a smile on my face
Latest
interface IHTMLInputElement
implements IHTMLElement
Re-export
import { type IHTMLInputElement } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

Properties

formAction: string
formMethod: string
formNoValidate: boolean
defaultChecked: boolean
files: File[]
defaultValue: string
height: number
width: number
size: number
minLength: number
maxLength: number
type: string
name: string
alt: string
min: string
max: string
pattern: string
placeholder: string
step: string
inputmode: string
accept: string
allowdirs: string
autocomplete: string
src: string
defaultvalue: string
readOnly: boolean
disabled: boolean
autofocus: boolean
required: boolean
indeterminate: boolean
multiple: boolean
checked: boolean
value: string
selectionStart: number
selectionEnd: number
selectionDirection: string
validity: ValidityState
validationMessage: string
willValidate: boolean
valueAsDate: Date
valueAsNumber: number

Methods

setSelectionRange(
start: number,
end: number,
direction: string,
): void

Set selection range.

setRangeText(
replacement: string,
start: number,
end: number,
selectionMode: HTMLInputElementSelectionModeEnum,
): void

Set range text.

checkValidity(): boolean

Checks validity.

cloneNode(deep: boolean): IHTMLInputElement

Clones a node.