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
feat(landmark-one-main): add rule ensuring one main landmark in document (#498)
* feat(landmark-one-main): add rule ensuring one main landmark in document
* fix: rename integration tests
* fix: move checks from 'any' to 'all'
* fix: add missing 'after' check
* fix: update to pass virtualnode in to check
* fix: change incorrect rule name in integration tests
* fix: remove line for debugging
* fix: correct faulty check tests
* test: add shadowCheckSetup util
* test: fix main tests for shadowdom
* fix: resolve timeout issues
* fix: add event listener
* fix: change where to check for passes
* style: comment code for comprehension
* test: add test for second violation node
Copy file name to clipboardExpand all lines: doc/rule-descriptions.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@
33
33
| input-image-alt | Ensures <input type="image"> elements have alternate text | cat.text-alternatives, wcag2a, wcag111, section508, section508.22.a | true |
34
34
| label-title-only | Ensures that every form element is not solely labeled using the title or aria-describedby attributes | cat.forms, best-practice | false |
35
35
| label | Ensures every form element has a label | cat.forms, wcag2a, wcag332, wcag131, section508, section508.22.n | true |
36
+
| landmark-one-main | Ensures a navigation point to the primary content of the page. If the page contains iframes, each iframe should contain either no main landmarks or just one. | best-practice | true |
36
37
| landmark-main-is-top-level | The main landmark should not be contained in another landmark | best-practice | true |
37
38
| layout-table | Ensures presentational <table> elements do not use <th>, <caption> elements or the summary attribute | cat.semantics, wcag2a, wcag131 | true |
38
39
| link-in-text-block | Links can be distinguished without relying on color | cat.color, experimental, wcag2a, wcag141 | true |
"description": "Ensures a navigation point to the primary content of the page. If the page contains iframes, each iframe should contain either no main landmarks or just one.",
0 commit comments