Skip to content

Inconsistency with ACT aria-hidden focusable rule #3406

@WilcoFiers

Description

@WilcoFiers

Axe-core is misreporting the following examples

Passed Example 4

<div aria-hidden="true">
	<a href="/" style="position:absolute; top:-999em" onfocus="document.querySelector('input').focus()">First link</a>
</div>
<input />

Failed Example 5

<div aria-hidden="true">
	<button tabindex="-1">Some button</button>
</div>

I disagree that failed example 5 should fail. I opened an issue for that here act-rules/act-rules.github.io#1807 But I don't think we should be failing passed example 4. We can't accurate detect what event listeners exist (whatwg/dom#412) but we can at least look for the onfocus property that is used in that example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions