w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
178 stars 48 forks source link

Update: hidden attribute clarifications #507

Open scottaohara opened 4 months ago

scottaohara commented 4 months ago

Update expectations for use of aria-hidden with the hidden attribute.

Clarify that the use of aria-hidden on an element with the hidden element is generally not recommended - but authors MUST NOT declare these attributes together if the hidden attribute is in the 'until-found' state.

example use case that should result in errors from checkers:

<div hidden aria-hidden=true>
  content that can be found, but will remain inaccessible per aria-hidden attribute
</div>

Preview | Diff