Releases: drwpow/html-aria
v0.5.3
v0.5.2
v0.5.1
v0.5.0
Minor Changes
- #54
74659abThanks @jlp-craigmorten! - Adopt WAI-ARIA 1.3 default of image role in preference to img role.
Fix role calculation for img element with no alt.
Fix ACCNAME calculation to support title attribute.
Fix ACCNAME calculation for empty or whitespace only labels.
v0.4.0
Minor Changes
- #49
1f90a50Thanks @jlp-craigmorten! - Role fixes
v0.3.0
Minor Changes
- #46
e49b399Thanks @jlp-craigmorten! - Add digital publishing (dpub) extensions roles
v0.2.0
Minor Changes
-
#38
047714dThanks @drwpow! -⚠️ Breaking API changes:getRole()now returns full role data, rather than a string. To achieve the same result, access thenameproperty:- getRole({ tagName: 'button' }) + getRole({ tagName: 'button' })?.name
-
#38
047714dThanks @drwpow! -⚠️ Breaking change: Node API now requires all attributes.Attributes
In the previous version,
<a>and<area>would assumehrefwas set, unless you passed in an explicitattributes: {}object. However, in expanding the DOM API this inconsistency in behavior led to problems. Now both versions behave the same way in regards to attributes: an attribute is assumed NOT to exist unless passed in.Ancestors
This behavior is largely-unchanged, however, some small improvements have been made.
Note: the DOM version will automatically traverse the DOM for you, and automatically reads all attributes. This change only affects the Node API where the DOM is unavailable.
-
#42
c000339Thanks @drwpow! -⚠️ Breaking change: aria- attribute data now matches ARIA spec, e.g.enum(unique type) replaced withtoken(described in ARIA 1.3). -
#40
eedfa8fThanks @drwpow! - Bugfix: aria-roledescription and aria-brailleroledescription removed from “naming prohibited” attributes
Patch Changes
-
#42
c000339Thanks @drwpow! - Incorporate the SVG AAM spec and add tests. -
#40
eedfa8fThanks @drwpow! - Bugfix: more AAM mappings were incorporated<dd>now maps todefinition<dt>now maps toterm<figcaption>now maps tocaption
-
#38
047714dThanks @drwpow! - fix: Performance improvements for DOM API -
#38
047714dThanks @drwpow! - feat: Add presentationalChildren property to RoleData -
#40
eedfa8fThanks @drwpow! - Add support for custom elements -
#38
047714dThanks @drwpow! - Fix: all methods are now runnable in a DOM or DOM-like environment
v0.1.9
Patch Changes
- #33
c257353Thanks @jlp-craigmorten! - Fix role for th element in context
v0.1.8
Patch Changes
- #30
b6219e8Thanks @jlp-craigmorten! - Fix role for aside element when nested within sectioning content
v0.1.7
Patch Changes
- #28
bbd21acThanks @jlp-craigmorten! - Fix role for section element with no accessible name