ARIA in HTML - test cases for elements which prohibit naming

last updated 12 March 2022

Tests:

Each of the following test cases is an instance of an HTML element which either has an aria-labelledby or a aria-label attribute, which are not allowed for these elements with their implicit ARIA roles which prohibit naming.

Note: the body element of this page has an aria-label and aria-labelledby specified for checking purposes, as that element too is not allowed to be named by authors.

a

fail fail

abbr

fail fail

address

fail
fail

area

fail fail

autonomous custom element

fail fail

b

fail fail

bdi

fail fail

bdo

fail fail

caption

fail
...
fail
...

cite

fail fail

code

fail fail

data

fail fail

del

fail fail

div

fail
fail

em

fail fail

figcaption

test
fail
test
fail

footer not scoped to body

fail
fail

header not scoped to body

fail
fail

hgroup

fail

fail

i

fail fail

ins

fail fail

kbd

fail fail

label

legend

fail
fail

mark

fail fail

p

fail

fail

pre

fail
fail

q

fail fail

rt

( fail ) ( fail )

s

fail fail

samp

fail fail

small

fail fail

span

fail fail

strong

fail fail

sub

fail fail

sup

fail fail

time

u

fail fail

var

fail fail