WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Landmark and HTML 5

for

From: Jared Smith
Date: Mar 9, 2020 2:21PM


> So you could play it safe and do both (native HTML
> element with redundant role that says the same thing). It won't have any
> adverse effect.

... so long as the appropriate roles are used. We see incorrect roles
attached to regions all time time - like <nav role="menu"> (instead of
"navigation") or <footer role="complementary"> (instead of
"contentinfo"), not to mention <h2 role="header">, <input
role="search">, etc., etc.

Because of the broad current support, I no longer advise doubling up.
While doing so causes no issues if done correctly, these introduce a
place for breakage that tends to happen rather frequently.

Thanks,

Jared