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.
labelled by name
abbr
fail
fail
address
fail
fail
area
autonomous custom element
b
fail
fail
bdi
fail
fail
bdo
fail
fail
caption
... |
... |
cite
fail
fail
code
fail
fail
data
fail
fail
del
div
fail
fail
em
fail
fail
figcaption
test
test
footer
not scoped to body
header
not scoped to body
hgroup
fail
fail
i
fail
fail
ins
fail
fail
kbd
fail
fail
label
legend
mark
fail
fail
p
fail
fail
pre
fail
fail
q
fail
fail