We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7036ad9 commit 021ec74Copy full SHA for 021ec74
files/en-us/web/api/element/ariaerrormessageelements/index.md
@@ -115,8 +115,8 @@ if ("ariaErrorMessageElements" in Element.prototype) {
115
log(`ariaErrorMessageElements: ${propElements}`);
116
117
// Accessible text from element inner text
118
- const text = propElements.map((e) => e.textContent.trim).join(" ");
119
- log(`Error message details: ${text.trim()}`);
+ const text = propElements.map((e) => e.textContent.trim()).join(" ");
+ log(`Error message details: ${text}`);
120
} else {
121
log("element.ariaErrorMessageElements: not supported by browser");
122
}
0 commit comments