Skip to content

Releases: drwpow/html-aria

v0.5.3

27 Jul 23:56
ce336a6

Choose a tag to compare

Patch Changes

v0.5.2

15 Jul 06:06
6112f74

Choose a tag to compare

Patch Changes

  • #63 e2cb0f2 Thanks @drwpow! - Add getAccNameAndDescription() for getting accessible names + descriptions.

v0.5.1

23 Apr 15:59
af948e3

Choose a tag to compare

Patch Changes

  • #59 3ae51fc Thanks @drwpow! - Bugfix: role now matches WPT tests and browser behavior

v0.5.0

18 Apr 20:05
d06a6bf

Choose a tag to compare

Minor Changes

  • #54 74659ab Thanks @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

13 Apr 22:27
4aa2016

Choose a tag to compare

Minor Changes

v0.3.0

16 Mar 17:17
5d731a7

Choose a tag to compare

Minor Changes

v0.2.0

10 Feb 01:20
ef0f62a

Choose a tag to compare

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 the name 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 assume href was set, unless you passed in an explicit attributes: {} 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 with token (described in ARIA 1.3).

  • #40 eedfa8f Thanks @drwpow! - Bugfix: aria-roledescription and aria-brailleroledescription removed from “naming prohibited” attributes

Patch Changes

v0.1.9

27 Jan 00:14
31a1268

Choose a tag to compare

Patch Changes

v0.1.8

25 Jan 15:35
0793d27

Choose a tag to compare

Patch Changes

v0.1.7

25 Jan 13:52
e7f3891

Choose a tag to compare

Patch Changes