A TypeScript library for calculating the accessible name of HTMLElement
s.
To install accname
with NPM, run:
$ npm install accname
Once installed, import and use accname
as follows:
import {getAccessibleName} from 'accname';
const elem = document.getElementById('target');
const name = getAccessibleName(elem);
This is not an officially supported Google product.