Skip to content

Fix/axe 3861 color parse empty guard - #285

Merged
chikara1608 merged 4 commits into
a11y_engine_pre_prod_1100from
fix/AXE-3861-color-parse-empty-guard
Aug 4, 2026
Merged

Fix/axe 3861 color parse empty guard#285
chikara1608 merged 4 commits into
a11y_engine_pre_prod_1100from
fix/AXE-3861-color-parse-empty-guard

Conversation

@chikara1608

Copy link
Copy Markdown
Collaborator

<< Describe the changes >>

Closes:

Aaryan430 and others added 4 commits July 24, 2026 15:24
A detached/inert node (mutation re-scan, or a <template>/shadow subtree)
yields an empty computed *-color. colorjs throws "Empty color reference"
on it, and that uncaught abort takes down the whole in-page Type-B data
collection (and cascades to subsequent Workflow-Analyser steps).

Guard parseString: treat a blank/non-string value as transparent instead
of throwing. Genuinely-transparent colors (rgba(0,0,0,0)) still parse
normally; only empty (== a non-rendered node) is short-circuited, so no
element that a rule actually scores changes verdict.

Adds parseString specs for empty / whitespace / non-string input.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…wserstack/a11y-engine-axe-core into fix/AXE-3861-color-parse-empty-guard
@chikara1608
chikara1608 merged commit 14cd9ce into a11y_engine_pre_prod_1100 Aug 4, 2026
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants