Interface ElementInternals
ariaActiveDescendantElement: Element | null;
ariaAtomic: string | null;
ariaAutoComplete: string | null;
ariaBrailleLabel: string | null;
ariaBrailleRoleDescription: string | null;
ariaBusy: string | null;
ariaChecked: string | null;
ariaColCount: string | null;
ariaColIndex: string | null;
ariaColIndexText: string | null;
ariaColSpan: string | null;
ariaControlsElements: readonly Element[] | null;
ariaCurrent: string | null;
ariaDescribedByElements: readonly Element[] | null;
ariaDescription: string | null;
ariaDetailsElements: readonly Element[] | null;
ariaDisabled: string | null;
ariaErrorMessageElements: readonly Element[] | null;
ariaExpanded: string | null;
ariaFlowToElements: readonly Element[] | null;
ariaHasPopup: string | null;
ariaHidden: string | null;
ariaInvalid: string | null;
ariaKeyShortcuts: string | null;
ariaLabel: string | null;
ariaLabelledByElements: readonly Element[] | null;
ariaLevel: string | null;
ariaLive: string | null;
ariaModal: string | null;
ariaMultiLine: string | null;
ariaMultiSelectable: string | null;
ariaOrientation: string | null;
ariaOwnsElements: readonly Element[] | null;
ariaPlaceholder: string | null;
ariaPosInSet: string | null;
ariaPressed: string | null;
ariaReadOnly: string | null;
ariaRelevant: string | null;
ariaRequired: string | null;
ariaRoleDescription: string | null;
ariaRowCount: string | null;
ariaRowIndex: string | null;
ariaRowIndexText: string | null;
ariaRowSpan: string | null;
ariaSelected: string | null;
ariaSetSize: string | null;
ariaSort: string | null;
ariaValueMax: string | null;
ariaValueMin: string | null;
ariaValueNow: string | null;
ariaValueText: string | null;
form: HTMLFormElement | null;
labels: NodeList;
role: string | null;
shadowRoot: ShadowRoot | null;
states: CustomStateSet;
validationMessage: string;
validity: ValidityState;
willValidate: boolean;
checkValidity(): boolean;
reportValidity(): boolean;
setFormValue(
value: string | File | FormData | null,
state?: string | File | FormData | null,
): void;
setValidity(
flags?: ValidityStateFlags,
message?: string,
anchor?: HTMLElement,
): void;
}
Hierarchy
- ARIAMixin
- ElementInternals (View Summary)
Index
Properties
Methods
Properties
ariaActiveDescendantElement
ariaAtomic
ariaAutoComplete
ariaBrailleLabel
ariaBrailleRoleDescription
ariaBusy
ariaChecked
ariaColCount
ariaColIndex
ariaColIndexText
ariaColSpan
ariaControlsElements
ariaCurrent
ariaDescribedByElements
ariaDescription
ariaDetailsElements
ariaDisabled
ariaErrorMessageElements
ariaExpanded
ariaFlowToElements
ariaHasPopup
ariaHidden
ariaInvalid
ariaKeyShortcuts
ariaLabel
ariaLabelledByElements
ariaLevel
ariaLive
ariaModal
ariaMultiLine
ariaMultiSelectable
ariaOrientation
ariaOwnsElements
ariaPlaceholder
ariaPosInSet
ariaPressed
ariaReadOnly
ariaRelevant
ariaRequired
ariaRoleDescription
ariaRowCount
ariaRowIndex
ariaRowIndexText
ariaRowSpan
ariaSelected
ariaSetSize
ariaSort
ariaValueMax
ariaValueMin
ariaValueNow
ariaValueText
Readonlyform
The form read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element.
Readonlylabels
The labels read-only property of the ElementInternals interface returns the labels associated with the element.
role
ReadonlyshadowRoot
The shadowRoot read-only property of the ElementInternals interface returns the ShadowRoot for this element.
Readonlystates
The states read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element.
ReadonlyvalidationMessage
The validationMessage read-only property of the ElementInternals interface returns the validation message for the element.
Readonlyvalidity
The 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.
ReadonlywillValidate
The willValidate read-only property of the ElementInternals interface returns true if the element is a submittable element that is a candidate for constraint validation.
Methods
checkValidity
The
checkValidity()method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.Returns boolean
reportValidity
The
reportValidity()method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.Returns boolean
setFormValue
- setFormValue(
value: string | File | FormData | null,
state?: string | File | FormData | null,
): voidThe
setFormValue()method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent.Parameters
- value: string | File | FormData | null
Optionalstate: string | File | FormData | null
Returns void
setValidity
The
setValidity()method of the ElementInternals interface sets the validity of the element.Parameters
Optionalflags: ValidityStateFlagsOptionalmessage: stringOptionalanchor: HTMLElement
Returns void
The
ElementInternalsinterface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms.MDN Reference