We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a375ff1 commit f216022Copy full SHA for f216022
src/element-internals.ts
@@ -150,7 +150,7 @@ export class ElementInternals implements IElementInternals {
150
const valid = this.checkValidity();
151
const anchor = validationAnchorMap.get(this);
152
if (anchor && !ref.constructor['formAssociated']) {
153
- throw new DOMException(`Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element.`);
+ throw new DOMException(`Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.`);
154
}
155
if (!valid && anchor) {
156
ref.focus();
0 commit comments