dequelabs / axe-core

Accessibility engine for automated Web UI testing
https://www.deque.com/axe/
Mozilla Public License 2.0
5.85k stars 756 forks source link

aria-haspopup depricated from global attributes #4531

Open curtbellew opened 1 month ago

curtbellew commented 1 month ago

Product

axe-core

Product Version

4.9.1

Latest Version

Issue Description

Expectation

Does the fact that aria-haspopup has been deprecated from global attributes mean it should be reported as a violation when used in any roles not listed - https://www.w3.org/TR/wai-aria-1.2/#aria-haspopup ?

Actual

When aria-haspopup is used on a DIV no violation is thrown

How to Reproduce

I would think the following code would return a violation but it does not. <div aria-haspopup="true">class</div>

Additional context

NA

straker commented 1 month ago

Thanks for the question. We have a few tickets currently open about deprecated ARIA roles and attributes. In general we don't want to disallow attributes or roles where they were previously allowed as that would cause code that was previously working to then report violations. Instead what we want to do is indicate that the role or attribute has been deprecated for its use and move the issue to probably a Needs Review issue.