Sa11y 5.0.2
- 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
pushResulthelper to standardize pushing results toState.resultsand migrate callers to use it. - Refactor all ruleset files to utilize
pushResulthelper, 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
svgfallbacks. - Adds CI tweaks (CodeQL config file and publish workflow permissions).