WebAIM - Web Accessibility In Mind

E-mail List Archives

what does a default value for aria-level mean if it's required?

for

From: glen walker
Date: Jan 20, 2020 5:35PM


The spec for role="heading" (https://www.w3.org/TR/wai-aria/#heading) says:

*Required States and Properties: *aria-level
*Implicit Value for Role: *Default for aria-level is 2.

Is aria-level really required? The Nu Html Checker (
https://validator.w3.org/nu/) does not complain if I don't have an
aria-level.

<div role="heading">

If aria-level **is* *required for role="heading", how can you have a
default value? The validator complains if I have an empty value

<div role="heading" aria-level>

I'm not following how an implicit value of 2 is used for aria-level if
aria-level is required and needs a value.