Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLsetFormValue setValiditySingle-choice MCQ

A form-associated custom element with `static formAssociated = true` never calls `setValidity` at all. When `form.checkValidity()` runs and `form.reportValidity()` is invoked, how is this element treated in constraint validation?

class MyEl extends HTMLElement { static formAssociated = true; constructor(){ super(); this.internals = this.attachInternals(); } // setValidity is never called }