Skip to content

Sa11y 5.0.2

Choose a tag to compare

@adamchaboryk adamchaboryk released this 20 Apr 23:46
  • Addresses a serious TypeError in 5.0.1.

Developer changes

These changes consolidate logic and reduce duplication.

  • Fix Lang.sprintf() argument handling and adjust regex behaviour.
  • Initialize and centralize many constants (stopwords, placeholder sets, link/file type patterns, click/new-window regexes).
  • Introduce pushResult helper to standardize pushing results to State.results and migrate callers to use it.
  • Refactor all ruleset files to utilize pushResult helper, significantly consolidating code.
  • Improve contrast preview rendering by setting styles on the preview element instead of inline HTML building.
  • Change annotation insertion order to prefer link/button targets before svg fallbacks.
  • Adds CI tweaks (CodeQL config file and publish workflow permissions).