Skip to content

Should text nodes be ignored by aria-required-children? #4536

Open
@WilcoFiers

Description

@WilcoFiers

The following code is passing the aria-required-children rule. I'm not sure whether it should, we should do some testing here. I expect assistive tech aren't going to allow proper keyboard navigation without a row / gridcell role on that last div. We'll see.

The reason this was raised is if you put tabindex="0" on that last div, it now gets reported as a failure. That's an inconsistency that's difficult to explain.

<div role="grid">
  <div role="row">
    <div role="gridcell">name</div>
    <div role="gridcell">e-mail</div>
  </div>
  <div>You have no data</div>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions