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

feat(landmark-no-duplicate-*): add rule landmark-no-duplicate-main, don't use html as element source for all duplicate rules #1949

Merged
merged 6 commits into from Jan 8, 2020

Conversation

straker
Copy link
Contributor

@straker straker commented Dec 18, 2019

Changes the element returned from html to whichever is the first duplicate element. However, doing this broke the landmark-one-main rule since it did two things at once: ensured there was a main element and that there was only one. Since I couldn't do both with a non-html selector, I had to split the rule into two rules to cover both cases

Closes issue: #978

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Code is reviewed for security

@straker straker requested a review from a team as a code owner December 18, 2019 19:07
@straker straker changed the title fix(landmark-no-duplicate-*): dont use html as element source feat(landmark-no-duplicate-*): don't use html as element source Dec 18, 2019
@straker straker changed the title feat(landmark-no-duplicate-*): don't use html as element source feat(landmark-no-duplicate-*): add rule landmark-no-duplicate-main, don't use html as element source for all duplicate rules Dec 18, 2019
lib/checks/keyboard/page-no-duplicate.js Outdated Show resolved Hide resolved
lib/checks/keyboard/page-no-duplicate.js Outdated Show resolved Hide resolved
lib/rules/landmark-one-main.json Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

2 participants