ARIA in HTML - test case for invalid aria-hidden use

last updated 28 February 2021

The aria-hidden attribute is allowed on any element that allows for global aria-* attributes.

Tests:

Test 1

Authors MAY use the aria-hidden attribute on any HTML element that allows global aria-* attributes, with the following exceptions:

aria-hidden is not allowed on:

  • base
  • col
  • colgroup
  • head
  • html
  • input type=hidden
  • link
  • map
  • meta
  • noscript
  • param
  • picture
  • script
  • slot
  • source
  • style
  • template
  • title
  • track

All elements represented above have been added to this document, in their proper locations so as to render in the browser. Each has an aria-hidden="false" so as to help ensure the test case will remain accessible.

table contains colgroup/col with aria-hidden

all other non-head or html elements follow with aria-hidden=false

Expected result:
An error for all elements with aria-hidden set, regardless if it is set to true or false.