Repository navigation
The score now measures WCAG failures only (score_model 3). Scores from 0.3.x and 0.4.0 are
not comparable: rescan both sides of a before/after.
Changed
- Best-practice findings no longer affect the score (
score_model3). Findings with no
WCAG criterion (for example axeregionandheading-order) stay in the report, the
best-practice recommendations section, the diff's advisory list and CI notices, but carry
no weight. The terminal's severity counts no longer include them. Issues, fingerprints,
conformance verdicts, coverage and the diff gate are unchanged by this change. - Breaking:
summary.by_severitynow counts scored findings only. Its four values can
add up to less thansummary.total_issues: best-practice findings and findings above the
target level (for example a AAA criterion under an AA target) no longer count there,
though they still count insummary.total_issues,summary.by_scannerand
summary.criteria_failed, which are unchanged. - To count best-practice and above-target findings by severity, read
issuesdirectly.
Filter entries withwcag_criteria: []or awcag_levelabove the target, leaving out
entries markedignoredorreview_only. - Redundant ARIA roles are best-practice recommendations, no longer WCAG 4.1.2
violations.jsx-a11y/no-redundant-roles(a role equal to the element's implicit
role, such as<button role="button">) is reported as a minor best practice with an
explanation and a link to the W3C guidance ("Avoid specifying redundant roles", ARIA in
HTML). It no longer fails 4.1.2. role="list"onul/olandrole="listitem"onliare no longer reported.
Background: https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html.- The terminal's best-practice section prints each rule's explanation and documentation
link. Under a rule, the report now shows the explanation the JSON carries as
suggestionwhen the rule has one (for example the redundant-role explanation), the
short built-in hint otherwise, then aLearn more:line with the rule'shelp_url. axe-core
rules keep their built-in hint; an axe-core rule with no hint prints its failure summary
instead of "See the rule documentation". The JSON output is unchanged. - Fixing a scored finding lowers the penalty, even when the displayed two-decimal score
does not move. Documented in the score charter (docs/score-philosophy.md). - The GitHub Action stays on 0.3.x. Its default version range does not include 0.4.0;
a release of the Action that moves to 0.4.0 follows. Until then, pull request checks run
by the Action keep the 0.3.x findings.
Fixed
- HTML-like text in a code comment is no longer reported as an element (
.jsx,.tsx).
A comment such as// no image resource to put in an <img src>next to the JSX was read
as an<img>without alternative text and reported by axe-core (image-alt, on the
comment's line). A<inside a comment (//,/* */and{/* */}) can no longer open
an element. These false findings disappear.
Security
- The bundled
undiciis updated from 7.29.1 to 7.30.2. It ships inside the package
throughcheerio. 7.29.1 carries eight published advisories on its HTTP, TLS and
WebSocket clients, four of them rated high (GHSA-xjj6-f33q-929c, GHSA-4w7w-5xrc-9h26,
GHSA-2m5v-pch6-74hx, GHSA-qrxm-fqhp-jwvm), all fixed in 7.30.1. Equall parses markup in
memory and makes no network request through it.
Score and fingerprint impact
- Scores rise or stay the same on projects with best-practice or redundant-role findings;
unchanged elsewhere. - A score can fall in one case: a
.jsxor.tsxfile where a comment containing a<
was hiding a real defect (for example an unlabelled<input>after a comment naming a
<label>). The defect is now reported. --min-scoreis checked against the new score. A gate that failed only because of
best-practice findings now passes.--diffis unaffected by the model change: it scans base and head with the same
engine.- Redundant roles: the remaining findings get a new fingerprint (their WCAG criteria
changed from4.1.2to none); therole="list"androle="listitem"findings
disappear. Consumers that track issues by fingerprint see one finding gone and one new
per remaining occurrence. - Comments in
.jsxand.tsx(only in a file with a<inside a comment). Gone: the
false findings. New: the real finding the phantom element was hiding. New fingerprint: a
finding on an element that contains such a comment. Relocated: a finding once reported
without a line, because a comment named the same tag as the real element, now reported
on its line. - Everything else keeps its fingerprint.