Releases: eps1lon/dom-accessibility-api
0.5.1
0.5.0
Minor Changes
-
9e46c51
#380 Thanks @eps1lon! - BREAKING CHANGEIgnore
::before
and::after
by default.This was necessary to prevent excessive warnings in
jsdom@^16.4.0
.
If you use this package in a browser that supports the second argument ofwindow.getComputedStyle
you can set thecomputedStyleSupportsPseudoElements
option to true:computeAccessibleName(element, { computedStyleSupportsPseudoElements: true }); computeAccessibleDescription(element, { computedStyleSupportsPseudoElements: true });
If you pass a custom implementation of
getComputedStyle
then this option defaults totrue
.
The following two calls are equivalent:computeAccessibleName(element, { computedStyleSupportsPseudoElements: true }); computeAccessibleName(element, { getComputedStyle: (element, pseudoElement) => { // custom implementation } });
Patch Changes
0.4.7
0.4.6
Patch Changes
-
f7c1981
#288 Thanks @eps1lon! - Drop node 13 supportWe only stopped testing. Probability of breakage should be very low.
New policy:
Only active node versions are supported.
Inactive node versions can stop working in a SemVer MINOR release.
-
fa53c51
#210 Thanks @eps1lon! - Implement accessbile description computationimport { computeAccessibleDescription } from "dom-accessibility-api"; const description = computeAccessibleDescription(element);
Warning: It always considers
title
attributes if the description is empty.
Even if thetitle
attribute was already used for the accessible name.
This is fails a web-platform-test.
The other failing test is due toaria-label
being ignored for the description which is correct by spec.
It's likely an issue with wpt.
The other tests are passing (13/15).
0.4.5
0.4.4
0.4.4
Patch Changes
-
737dfae
#234 Thanks @willamzv! - Consider<legend>
for the name of its<fieldset>
element.<fieldset> <legend><em>my</em> fieldset</legend> </fieldset>
Computing the name for this fieldset would've returned an empty string previously. It now correctly computes
my fieldset
following the accessible name computation forfieldset
elements
-
969da7d
#240 Thanks @eps1lon! - Reduce over-transpilationSwitched from
for-of
to.forEach
or a basicfor
looparray.push(...otherArray)
topush.apply(array, otherArray)
This removed a bunch of babel junk that wasn't needed.
-
d578329
#248 Thanks @eps1lon! - Consider<caption>
for the name of its<table>
element.<table> <caption> <em>my</em> table </caption> </table>
Computing the name for this table would've returned an empty string previously. It now correctly computes
my table
following the accessible name computation fortable
elements