Skip to content

Commit f216022

Browse files
fix: fix error message
1 parent a375ff1 commit f216022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/element-internals.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class ElementInternals implements IElementInternals {
150150
const valid = this.checkValidity();
151151
const anchor = validationAnchorMap.get(this);
152152
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.`);
153+
throw new DOMException(`Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.`);
154154
}
155155
if (!valid && anchor) {
156156
ref.focus();

0 commit comments

Comments
 (0)