Skip to content

Invalid ARIA attribute in formatter-html: 'aria-control' used instead of 'aria-controls' #6034

@the-marksman-v30

Description

@the-marksman-v30

Summary: The HTML formatter template packages/formatter-html/src/views/partials/scan-result.ejs was emitting aria-control="categories-list" in generated reports. aria-controlis not a valid ARIA attribute (the correct attribute isaria-controls`), which causes accessibility linters and tools like webhint to flag generated reports.

Fix: A change was made replacing aria-control %u2192 aria-controls, adding a regression test, and updating the CHANGELOG. The branch is named copilot/willing-chipmunk (may be in a fork).

Note: I could not find an open PR in the upstream repo for this branch. If a PR exists, please attach the link and I will add it to this issue.

Request: Please add labels bug and accessibility, request reviewer attention, and backport if required.

Repro: Generate an HTML report and inspect the button element for the invalid attribute.

Files: packages/formatter-html/src/views/partials/scan-result.ejs (and compiled / dist versions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions