Skip to content

ARIA in HTML allowances changes for br and wbr #3177

@scottaohara

Description

@scottaohara

Product: axe-core

Expectation: wbr and br elements only allow the none and presentation roles. And only allow the aria-hidden attribute.

Actual: br presently allows any global aria- attribute. wbr presently allows for any role and global aria-* attribute, or aria-* attribute applicable to the assigned explicit role.

role test page for wbr

Motivation: ARIA in HTML will be changing the allowances for br and wbr elements. These elements will only allow the none and presentation roles, and the aria-hidden attribute. Other roles and global aria- attributes do not make sense to be used on these elements, particularly due to their inability to be effectively modified by authors.

axe-core version: 4.3.3
chromium 94

Edit: indicating tasks requested in this issue

  • Done: update role allowances for br and wbr
  • TODO: ensure that aria-hidden is the only allowed aria-* attribute for br and wbr elements

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueFor first-time contributorsstandardsIssues in the ARIA standards objects (lib/standards)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions