You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected that only header/footer elements that are decedents of section elements don't have roles of banner / contentinfo as per the MDN docs:
By default, the HTML's
element has an identical meaning to the banner landmark, unless it is a descendant of , , , , or , at which point exposes a generic role, and not the equivalent of the site-wide banner.
When it is an immediate descendant of the using the
element will automatically communicate a section has a role of contentinfo (save for a known issue in VoiceOver). If at all possible, prefer using instead. Note that a footer element nested within an article, aside, main, nav, or section is not considered contentinfo.
Hi @matt-pawley!
Thanks for opening this one.
Any chance for a reference to the spec you've used here?
Also, this should probably be an issue in https://github.com/A11yance/aria-query, but let's try to see it's indeed a bug first :)
@testing-library/dom
version: 10.4.0Relevant code or config:
What you did:
Expected that only header/footer elements that are decedents of section elements don't have roles of
banner
/contentinfo
as per the MDN docs:What happened:
Elements have the aforementioned roles.
Reproduction:
https://codesandbox.io/p/sandbox/react-testing-library-bug-reproduction-sw7zzf?file=%2Fsrc%2FApp.js%3A4%2C1-12%2C6
Problem description:
Conflicts with the MDN docs/browser accessibility tree.
The text was updated successfully, but these errors were encountered: