hidden-focusable does not take into consideration inert attribute set on ancestors
The hidden-focusable rule throws an error if the inert attribute is applied to an element with aria-hidden set when that element has a focusable descendant. (It doesn't throw an error if the inert attribute is set on the focusable element itself or its immediate parent.)
Reduced test-case
<div aria-hidden="true" inert>
<div>
<a href="#"> lorem ipsum </a>
</div>
</div>
Configuration
{
"rules": {
"hidden-focusable": "error"
}
}
Expected result
No error.
Actual result
Error.
Version
-
html-validate
: 8.17.0