← Back to Pull requests

fix(dom/getResolvedRefs): read a non-empty idrefs attribute before its property #5561

Open
erezcor opened this pull request with 43 lines diff across 2 files
View on GitHub
erezcor erezcor commented on Nov 13, 2026 15:59 UTC
Author

getIdrefsValue now returns a non-empty idrefs attribute (e.g. aria-labelledby) without reading the element-reflection property, as suggested in #5549. Reading ariaLabelledByElements can crash the Firefox 159 page, which made aria-dialog-name crash 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>

  • New unit test: an element whose ariaLabelledByElements getter throws resolves its refs from the attribute. It fails without this change.

  • test/commons/{dom,aria,text} and test/checks/{label,aria,shared} pass in Chrome (1,750 tests).

  • Firefox 159 (Playwright 1.65, @axe-core/playwright legacy 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

    Diff: 43 lines (+41 / -2) across 2 files Reviewer: None requested Review duration: 28878m
    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
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    None requested
    Assignees
    erezcor erezcor
    Labels
    risk: low confidence: 44.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.2% · Lower = rushed or shallow review
    44.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 21.8% · Safe to merge
    21.8%