Skip to content

ARIA role="presentation" not supported #149

Closed
@Hywan

Description

@Hywan

Hello :-),

The role="presentation" definition is the following:

The DOM descendants are presentational. User agents SHOULD NOT expose descendants of this element through the platform accessibility API. If user agents do not hide the descendant nodes, some information may be read twice.

A more detailed explanation can be found.

So, for instance, we can write this:

<a href="" role="presentation">…</a>

and it is a valid HTML from the accessibility point of view.

What is the strategy to implement this in HTML_CodeSniffer? The goal is to check that any selected element in no a child or an element with a role="presentation" attribute.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions