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(rule): identical-links-same-purpose #1649

Merged
merged 60 commits into from Jan 15, 2020

Conversation

jeeyyy
Copy link
Contributor

@jeeyyy jeeyyy commented Jun 21, 2019

This PR adds a new rule

  • identical-links-same-purpose

Further Reading:

Closes issue:

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

@jeeyyy jeeyyy requested a review from a team as a code owner June 21, 2019 12:37
@jeeyyy jeeyyy self-assigned this Jun 21, 2019
@straker
Copy link
Contributor

straker commented Jun 21, 2019

PS. you linked to the Filename is valid accessible name docs

lib/checks/navigation/identical-links-same-purpose.js Outdated Show resolved Hide resolved
lib/rules/identical-links-same-purpose.json Show resolved Hide resolved
lib/checks/navigation/identical-links-same-purpose.js Outdated Show resolved Hide resolved
lib/checks/navigation/identical-links-same-purpose.js Outdated Show resolved Hide resolved
@jeeyyy
Copy link
Contributor Author

jeeyyy commented Jun 24, 2019

@straker upon discussing with @WilcoFiers decided to compare full resource (href) between identical links, that addresses comments like - #1649 (comment)

@jeeyyy jeeyyy changed the title feat(rule): identical-links-same-purpose [WIP] feat(rule): identical-links-same-purpose Jun 25, 2019
@jeeyyy jeeyyy requested review from straker and WilcoFiers July 2, 2019 14:38
@jeeyyy jeeyyy changed the title [WIP] feat(rule): identical-links-same-purpose feat(rule): identical-links-same-purpose Jul 2, 2019
lib/rules/identical-links-same-purpose.json Outdated Show resolved Hide resolved
lib/rules/identical-links-same-purpose.json Outdated Show resolved Hide resolved
lib/rules/identical-links-same-purpose.json Outdated Show resolved Hide resolved
lib/rules/identical-links-same-purpose.json Outdated Show resolved Hide resolved
lib/checks/navigation/identical-links-same-purpose.js Outdated Show resolved Hide resolved
lib/checks/navigation/identical-links-same-purpose.js Outdated Show resolved Hide resolved
test/checks/navigation/identical-links-same-purpose.js Outdated Show resolved Hide resolved
test/checks/navigation/identical-links-same-purpose.js Outdated Show resolved Hide resolved
test/checks/navigation/identical-links-same-purpose.js Outdated Show resolved Hide resolved
@jeeyyy jeeyyy changed the title feat(rule): identical-links-same-purpose [WIP] feat(rule): identical-links-same-purpose Jul 5, 2019
@jeeyyy jeeyyy added the rules Issue or false result from an axe-core rule label Aug 13, 2019
@jeeyyy jeeyyy requested a review from WilcoFiers January 9, 2020 16:21
@jeeyyy jeeyyy changed the title [WIP] feat(rule): identical-links-same-purpose feat(rule): identical-links-same-purpose Jan 9, 2020
test/commons/dom/is-visible.js Outdated Show resolved Hide resolved
parser.pathname
);
return {
protocol: parser.protocol,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even so, "http" and "https" should be treated as the same, same for ftp and ftps. Please add that.

lib/commons/dom/is-visible.js Show resolved Hide resolved
@jeeyyy jeeyyy merged commit 9c73f62 into develop Jan 15, 2020
@jeeyyy jeeyyy deleted the rule-identical-links-same-purpose branch January 15, 2020 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rules Issue or false result from an axe-core rule wai-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants