REVENGE.CSS icon indicating copy to clipboard operation
REVENGE.CSS copied to clipboard

Time to retire the message suggesting role="banner" to header elements, now?

Open brucelawson opened this issue 5 years ago • 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)

brucelawson avatar Nov 27 '19 16:11 brucelawson

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 avatar Nov 27 '19 16:11 coliff

@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...

brucelawson avatar Nov 27 '19 18:11 brucelawson