question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.5.1 landmark-no-duplicate-contentinfo Issue

See original GitHub issue

Example structure that is failing when using CLI and API v3.5.1 (not browser extension)

<body>
	<header></header>
	<nav></nav>
	<main>
		<article>
			<header></header>
			<section></section>
			<section></section>
			<footer></footer>
		</article>
	</main>
	<footer></footer>
</body>

test-axe-contentinfo.html.zip

Expectation: Allow <section>, <article>, <aside>, <main>, and <nav> elements to have scoped <footer> element and pass tests; especially when the landmarks are uniquely labeled.

The HTML footer element defines a contentinfo landmark when its context is the body element.

https://www.w3.org/TR/wai-aria-practices/examples/landmarks/contentinfo.html See “HTML Techniques”
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Contentinfo_role See “Best Practices”

Actual: Best practices Error for multiple contentinfo landmarks when there is only one that is a child of body. Violation of “landmark-no-duplicate-contentinfo” with 1 occurrences! https://dequeuniversity.com/rules/axe/3.5/landmark-no-duplicate-contentinfo (Also, will say only 1 occurrence when there is multiple and complains one at a time)

Motivation: To follow HTML5 spec and behave the same as <header> and role banner https://dequeuniversity.com/rules/axe/3.5/landmark-no-duplicate-banner


axe-core version: 3.5.1
`Running axe-core 3.5.1 in chrome-headless`
axe-webdriver, extension or other integration version: N/A

Browser and Assistive Technology versions N/A

For Tooling issues:
- Node version: v13.8.0
- Platform:  Mac

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
strakercommented, Mar 19, 2020

Correct. The changes have not been released yet. When axe 3.5.3 is released this bug will be fixed.

0reactions
strakercommented, Apr 1, 2020

@dmlb we just released axe-core@3.5.3. This fix should be included.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Page must not have more than one contentinfo landmark
Ensure the document has no more than one contentinfo landmark. A page SHOULD NOT contain more than one instance of the contentinfo landmark....
Read more >
Document should not have more than one contentinfo landmark
This rule locates every contentinfo landmark, eliminates any that do not map their role, and confirms that there is only one. Learn more:...
Read more >
EPUB 3.3 - W3C
Abstract. EPUB® 3 defines a distribution and interchange format for digital publications and documents. The EPUB format provides a means of ...
Read more >
MVN User Manual - Xsens
MVN Awinda (starter) backpack/suitcase with contents . ... calibration, no need to palpate bony landmarks for marker placement, ...
Read more >
2019 TIGER/Line Shapefiles Technical Documentation
They do not include demographic data from surveys and censuses, such as the Decennial Census, Economic Census, American Community Survey, and the Population ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found