Skip to content

Commit 982727a

Browse files
committed
fix(dom): remove unnecessary whitespace in getAccessibleDescription function
1 parent e9b598c commit 982727a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/dom/src/lib/helpers/helpers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,20 @@ function normalizeText(text: string): string {
8080

8181
export function getAccessibleDescription(actual: Element): string {
8282
const ariaDescribedBy = actual.getAttribute("aria-describedby");
83-
83+
8484
if (!ariaDescribedBy) {
8585
return "";
8686
}
87-
87+
8888
const descriptionIds = ariaDescribedBy.split(/\s+/).filter(Boolean);
8989

9090
const getElementText = (id: string): string | null => {
9191
const element = actual.ownerDocument.getElementById(id);
92-
92+
9393
if (!element || !element.textContent) {
9494
return null;
9595
}
96-
96+
9797
return element.textContent;
9898
};
9999

0 commit comments

Comments
 (0)