Releases: drwpow/html-aria
v0.2.0
Minor Changes
-
#38
047714d
Thanks @drwpow! -⚠️ Breaking API changes:getRole()
now returns full role data, rather than a string. To achieve the same result, access thename
property:- getRole({ tagName: 'button' }) + getRole({ tagName: 'button' })?.name
-
#38
047714d
Thanks @drwpow! -⚠️ Breaking change: Node API now requires all attributes.Attributes
In the previous version,
<a>
and<area>
would assumehref
was 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
c000339
Thanks @drwpow! -⚠️ Breaking change: aria- attribute data now matches ARIA spec, e.g.enum
(unique type) replaced withtoken
(described in ARIA 1.3). -
#40
eedfa8f
Thanks @drwpow! - Bugfix: aria-roledescription and aria-brailleroledescription removed from “naming prohibited” attributes
Patch Changes
-
#42
c000339
Thanks @drwpow! - Incorporate the SVG AAM spec and add tests. -
#40
eedfa8f
Thanks @drwpow! - Bugfix: more AAM mappings were incorporated<dd>
now maps todefinition
<dt>
now maps toterm
<figcaption>
now maps tocaption
-
#38
047714d
Thanks @drwpow! - fix: Performance improvements for DOM API -
#38
047714d
Thanks @drwpow! - feat: Add presentationalChildren property to RoleData -
#40
eedfa8f
Thanks @drwpow! - Add support for custom elements -
#38
047714d
Thanks @drwpow! - Fix: all methods are now runnable in a DOM or DOM-like environment
v0.1.9
Patch Changes
- #33
c257353
Thanks @jlp-craigmorten! - Fix role for th element in context
v0.1.8
Patch Changes
- #30
b6219e8
Thanks @jlp-craigmorten! - Fix role for aside element when nested within sectioning content
v0.1.7
Patch Changes
- #28
bbd21ac
Thanks @jlp-craigmorten! - Fix role for section element with no accessible name