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

fix: Added a check for a hardcoded aria 'role' value in the same element. #493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JMac118
Copy link

@JMac118 JMac118 commented Mar 28, 2024

This will stop it from "guessing" if an element is a navigation or main element if the element has the aria role of 'navigation' or 'main'. It won't need to guess it if it is specifically outlined to be that.

This will stop it from "guessing" if an element is a navigation or main element if the element has the aria role of 'navigation' or 'main'. It won't need to guess it if it is specifically outlined to be that.
Copy link
Author

@JMac118 JMac118 left a comment

Choose a reason for hiding this comment

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

When a website has a aria value of 'navigation' or 'main' the extension can still add "guessed" values to the list when it really doesn't need to, which will cause duplicate landmarks in the extension (one actual value, one guessed). This change should stop that.

@JMac118 JMac118 changed the title Added a check for a hardcoded aria 'role' value in the same element. fix: Added a check for a hardcoded aria 'role' value in the same element. Mar 28, 2024
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

1 participant