We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9b598c commit 982727aCopy full SHA for 982727a
1 file changed
packages/dom/src/lib/helpers/helpers.ts
@@ -80,20 +80,20 @@ function normalizeText(text: string): string {
80
81
export function getAccessibleDescription(actual: Element): string {
82
const ariaDescribedBy = actual.getAttribute("aria-describedby");
83
-
+
84
if (!ariaDescribedBy) {
85
return "";
86
}
87
88
const descriptionIds = ariaDescribedBy.split(/\s+/).filter(Boolean);
89
90
const getElementText = (id: string): string | null => {
91
const element = actual.ownerDocument.getElementById(id);
92
93
if (!element || !element.textContent) {
94
return null;
95
96
97
return element.textContent;
98
};
99
0 commit comments