dequelabs / dequelabs/axe-core

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

Open
#4,536 2 comments 0 reactions 0 assignees View on GitHub
false negative rules support
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

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.

```html



name

e-mail


You have no data


```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.