ElementInternals extension type

The ElementInternals interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms. It provides utilities for working with these elements in the same way you would work with any standard HTML form element, and also exposes the Accessibility Object Model to the element.

on
Implemented types

Properties

form HTMLFormElement?
no setter
hashCode int
The hash code for this object.
no setterinherited
labels NodeList
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowRoot ShadowRoot?
no setter
states CustomStateSet
no setter
validationMessage String
no setter
validity ValidityState
no setter
willValidate bool
no setter

Methods

checkValidity() bool
The checkValidity() method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reportValidity() bool
The reportValidity() method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.
setFormValue(JSAny? value, [JSAny? state]) → void
The setFormValue() method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent.
setValidity([ValidityStateFlags flags, String message, HTMLElement anchor]) → void
The setValidity() method of the ElementInternals interface sets the validity of the element.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited