ReadonlyformThe form read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element.
ReadonlylabelsThe labels read-only property of the ElementInternals interface returns the labels associated with the element.
ReadonlyshadowThe shadowRoot read-only property of the ElementInternals interface returns the ShadowRoot for this element.
ReadonlystatesThe states read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element.
ReadonlyvalidationThe validationMessage read-only property of the ElementInternals interface returns the validation message for the element.
ReadonlyvalidityThe validity read-only property of the ElementInternals interface returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
ReadonlywillThe willValidate read-only property of the ElementInternals interface returns true if the element is a submittable element that is a candidate for constraint validation.
The checkValidity() method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.
The reportValidity() method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.
The setFormValue() method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent.
Optionalstate: string | FormData | File | nullThe setValidity() method of the ElementInternals interface sets the validity of the element.
Optionalflags: ValidityStateFlagsOptionalmessage: stringOptionalanchor: HTMLElement
The
ElementInternalsinterface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms.MDN Reference