Skip to content

non-focusable widget roles nested within elements with children presentational #2699

@giacomo-petri

Description

@giacomo-petri

As demonstrated in web-platform-tests/wpt#50045, UA consistently expose non-focusable widget roles nested within elements with children presentational with their implicit role.

For example:

<button>
  Something
  <div role="button">Something</div>
</button>

According to the current specs, the conditional logic does not account for this exception. As written, the nested button should be ignored or treated as a generic element, which does not match existing UA behavior.

Since I'm currently working on Presentational Roles Conflict Resolution in #2237, I'd like to address this discrepancy in that PR. Before doing so, I want to confirm that this is indeed the desired direction.

Metadata

Metadata

Assignees

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