fix(dom/getResolvedRefs): read a non-empty idrefs attribute before its property #5561
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.39) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 43 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.226
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #5561"
general
weight: 0.35
erezcor
getIdrefsValuenow returns a non-empty idrefs attribute (e.g.aria-labelledby) without reading the element-reflection property, as suggested in #5549. ReadingariaLabelledByElementscan crash the Firefox 159 page, which madearia-dialog-namecrash on a plain<div role="dialog" aria-labelledby="…">. An empty attribute, which setting the property leaves behind, still falls back to the property.<details>
<summary>Verification</summary>
ariaLabelledByElementsgetter throws resolves its refs from the attribute. It fails without this change.test/commons/{dom,aria,text}andtest/checks/{label,aria,shared}pass in Chrome (1,750 tests).@axe-core/playwrightlegacy mode,iframes: false) on Linux: 3 e2e tests × 3 repeats that scan a MUI dialog opened by client-side navigation. axe-core 4.14.0 crashed the page 9 of 9 times; this change passed 9 of 9 on the same machine.</details>
Closes: #5549