Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLform-associated custom elements ElementInternalsSingle-choice MCQ

A class declares static formAssociated = true and calls this.attachInternals() in its constructor. Which set of lifecycle reactions does the engine ONLY invoke for form-associated custom elements (and never for a plain custom element)?

class XInput extends HTMLElement { static formAssociated = true; #internals = this.attachInternals(); }