You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-11Lines changed: 0 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,17 +22,6 @@ _TODO..._
22
22
23
23
_TODO..._
24
24
25
-
Get the [accessible name and description](https://www.w3.org/TR/html-aam-1.0/#accessible-name-and-description-computation) for an HTML element.
26
-
27
-
```ts
28
-
const el =document.querySelector('input');
29
-
getAccNameAndDescription(el);
30
-
// { name: "My Input", description: undefined }
31
-
```
32
-
33
-
> [!NOTE]
34
-
> There are limitations in Node.js with complex accessible name calculation such as `aria-labelledby`. But simple calculations like `aria-label` are well-supported.
0 commit comments