Time to retire the message suggesting role="banner" to header elements, now?
Opened this issue · 2 comments
.. pretty sure this is obsolete in today's browsers? (Ditto contentinfo etc). Happy to make a PR ..
(and perhaps show a message on any main that is not the only/ first main on a page, because 8.06% of pages erroneously contain more than one main landmark (https://almanac.httparchive.org/en/2019/accessibility#main-landmark)
hey Bruce - regarding the 'main' element... according to the W3C ARIA Landmarks Example site can use multiple 'main' elements if they have unique labels (see HTML Techniques tab). Is that incorrect then?
https://www.w3.org/TR/wai-aria-practices/examples/landmarks/main.html
(I personally wouldn't ever use more than 1 main element on a page but curious to know...)
@coliff Hmmm - never seen that doc. That's about role=main on a div. I'm looking at the html element. Spec currently says "A document must not have more than one main element that does not have the hidden attribute specified" (https://html.spec.whatwg.org/multipage/grouping-content.html#the-main-element). I wonder if I'm clever enough to come up with a CSS selector to find that...