OptionaladoptedThe custom element has been moved into a new document
(e.g. someone called document.adoptNode(el)).
OptionalattributeCalled when an observed attribute has been added, removed, updated, or replaced. Also called for initial values when an element is created by the parser, or upgraded.
Note: only attributes listed in static observedAttributes property will receive this callback.
OptionalconnectedCalled every time the element is inserted into the DOM
OptionaldisconnectedCalled every time the element is removed from the DOM.
OptionalformCalled when the browser associates the element with a form element, or disassociates the element from a form element.
OptionalformCalled after the disabled state of the element changes,
either because the disabled attribute of this element was added or removed;
or because the disabled state changed on a <fieldset> that's an ancestor of this element.
This parameter represents the new disabled state of the element.
OptionalformCalled after the form is reset. The element should reset itself to some kind of default state.
OptionalformCalled in one of two circumstances:
mode argument is "restore" in this case.mode argument is "autocomplete" in this case.
See
https://web.dev/more-capable-form-controls/#lifecycle-callbacks