🏠 New in Low Baseline Support: Form-associated custom elements
March 27, 2023
Custom elements may act like built-in form elements, via the the attachInternals()
method of HTMLElement
and the ElementInternals
API.
Source features
api.ElementInternals
[mdn]api.HTMLElement.attachInternals
[mdn]api.ElementInternals.checkValidity
[mdn]api.ElementInternals.form
[mdn]api.ElementInternals.labels
[mdn]api.ElementInternals.reportValidity
[mdn]api.ElementInternals.setFormValue
[mdn]api.ElementInternals.setValidity
[mdn]api.ElementInternals.validationMessage
[mdn]api.ElementInternals.validity
[mdn]api.ElementInternals.willValidate
[mdn]