Skip to content

Releases: drwpow/html-aria

v0.2.0

10 Feb 01:20
ef0f62a
Compare
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
Compare
Choose a tag to compare

Patch Changes

v0.1.8

25 Jan 15:35
0793d27
Compare
Choose a tag to compare

Patch Changes

v0.1.7

25 Jan 13:52
e7f3891
Compare
Choose a tag to compare

Patch Changes

v0.1.6

14 Jan 18:26
047fbaa
Compare
Choose a tag to compare

Patch Changes

v0.1.5

08 Jan 23:27
531c862
Compare
Choose a tag to compare

Patch Changes

v0.1.4

08 Jan 18:34
a661adc
Compare
Choose a tag to compare

Patch Changes

v0.1.3

08 Jan 18:28
6987743
Compare
Choose a tag to compare

Patch Changes

v0.1.2

06 Jan 22:36
42dac49
Compare
Choose a tag to compare

Patch Changes