Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

landmarks.js should also detect roles #6

Open
keithamus opened this issue Feb 1, 2016 · 1 comment
Open

landmarks.js should also detect roles #6

keithamus opened this issue Feb 1, 2016 · 1 comment

Comments

@keithamus
Copy link

Hey @soulgalore! I was reading through the (very clean) source for coach and noticed https://github.com/sitespeedio/coach/blob/master/lib/dom/accessibility/landmarks.js.

It should not only detect HTML5 elements with built-in landmarks, but also landmark roles:

  • [role="application"] - A region declared as a web application, as opposed to a web document.
  • [role="banner"] - A region that contains mostly site-oriented content, rather than page-specific content.
  • [role="complementary"] - A supporting section of the document, designed to be complementary to the main content at a similar level in the DOM hierarchy, but remains meaningful when separated from the main content.
  • [role="contentinfo"]- A large perceivable region that contains information about the parent document.
  • [role="form"] - A landmark region that contains a collection of items and objects that, as a whole, combine to create a form. See related search.
  • [role="main"] - The main content of a document.
  • [role="navigation"] - A collection of navigational elements (usually links) for navigating the document or related documents.
  • [role="search"] - A landmark region that contains a collection of items and objects that, as a whole, combine to create a search facility. See related form.

For example - a landmark tag could be <div role="banner"></div>.

@soulgalore
Copy link
Member

Hey @keithamus
ah thanks I missed that. I'll fix that before the "real" release :)

@soulgalore soulgalore transferred this issue from sitespeedio/coach Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants