Aria-practices: Landmarks section should include advice that all content should be in a landmark.

Created on 11 Apr 2018  路  11Comments  路  Source: w3c/aria-practices

Migrating old tracker issues
https://www.w3.org/WAI/ARIA/track/issues/505

documentation editorial pattern section

All 11 comments

All perceivable content. Wrapper divs and hidden things don't count. :)

Also Skip to main content link need not be in a landmark - as if you are using landmarks to navigate there is no need to have it.

Skip links should also be in a landmark. Usually the closest is the header element.


@carmacleod wrote:
All _perceivable_ content. Wrapper divs and hidden things don't count. :)

All content is perceivable no? A wrapper-div wouldn鈥檛 count as it itself isn鈥檛 content. I would think it鈥檚 fine to leave out some hidden things such as <script>-tags.

Skip links should also be in a landmark. Usually the closest is the header element.

@MichielBijl Why? Who does this help? If someone is navigating by landmarks they can already do the functionality provided by the skip link. If someone is not navigating by landmarks then it doesn't matter if they are in a landmark or not.
Am I missing a use case where having a skip link within a landmark actually makes the page better for anybody?

@jnurthen, I would like to invite @stevefaulkner to the conversation. This is something I learned from him.

That said, there鈥檚 some text in our own document that tells us the same thing:

Including all content on a page in one of its landmark regions and giving each landmark region a semantically meaningful role is one of the most effective ways of ensuring assistive technology users will not overlook information that is relevant to their needs.

Skip links should also be in a landmark. Usually the closest is the header element.

Adding skip links to the banner or closest nav is ok if those already exist. I just wouldn't want to encourage authors to go _creating_ new navs to put skip links in, because that would increase the number of landmarks for no useful reason (nobody is going to navigate to a "skip links" landmark in order to then "Skip to main", for example... they would navigate directly to the main landmark instead).

All content is perceivable no? A wrapper-div wouldn鈥檛 count as it itself isn鈥檛 content. I would think it鈥檚 fine to leave out some hidden things such as