WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Aside element inside and aside?


From: Jon Gunderson
Date: Jul 22, 2022 8:00PM

Not a good idea from an accessibility point of view to nest aside elements, since aside elements create complementary landmarks. Nested aside elements will be confusing to screen reader uses and “polute” this list of landmarks view.

If they must nest the aside elements, they should set the role=none attribute so it will not create a complementary landmark.

Jon Gunderson
Sent from my iPhone

> On Jul 22, 2022, at 12:27 PM, Glen Walker < <EMAIL REMOVED> > wrote:
> If you're asking from a “is this valid html?” perspective, then yes.
> https://html.spec.whatwg.org/multipage/sections.html#the-aside-element
> An aside can have “flow content” inside it and an aside element is considered “flow content” so it can be nested.
> Conceptually, an aside is tangential info to the main page. So an aside inside an aside means it's info that is tangentially related to the first aside and not necessarily to the main page.
> > > >