Skip to content

Latest commit

 

History

History
134 lines (72 loc) · 7.58 KB

File metadata and controls

134 lines (72 loc) · 7.58 KB

html-aria

0.5.3

Patch Changes

0.5.2

Patch Changes

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

0.5.1

Patch Changes

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

0.5.0

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.

0.4.0

Minor Changes

0.3.0

Minor Changes

0.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 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

0.1.9

Patch Changes

0.1.8

Patch Changes

0.1.7

Patch Changes

0.1.6

Patch Changes

0.1.5

Patch Changes

0.1.4

Patch Changes

0.1.3

Patch Changes

0.1.2

Patch Changes