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

tabindex rule throws error when it shouldn't #1834

Closed
corrieann opened this issue Oct 1, 2019 · 4 comments
Closed

tabindex rule throws error when it shouldn't #1834

corrieann opened this issue Oct 1, 2019 · 4 comments
Assignees
Labels
feat New feature or enhancement
Milestone

Comments

@corrieann
Copy link

Seems to be a recurrence of #1714

Snippet of HTML of the Element <paper-input class="colab-replace-input" type="text" label="Replace with" tabindex="0" aria-disabled="false">
Impact serious
Targets .colab-replace-row > paper-input.colab-replace-input
FailureSummary Fix any of the following: Element has a tabindex greater than 0
At least one check must have passed CheckResult ID: tabindexImpact: seriousMessage: Element has a tabindex greater than 0

Can view the element in question on
https://colab.research.google.com by opening Edit -> Find and replace...
although if I do that and run axe via a Chrome extension, it's not triggering this error. It only seems to from axe-webdriver.


axe-core version: 2.5
axe-webdriver, extension or other integration version: 2.0

For Tooling issues:
- Platform:  Linux
@straker
Copy link
Contributor

straker commented Oct 2, 2019

The bug is that paper-input redefines the tabIndex property of the element, so when we check for node.tabIndex <= 0, it returns undefined instead of a value. I'm not sure if this is a Polymer bug or something we have to start accounting for (custom elements overriding native properties of the HTMLElement).

@straker straker added the info needed More information or research is needed to continue label Oct 2, 2019
@WilcoFiers WilcoFiers added this to the Axe-core 3.5 milestone Oct 28, 2019
@WilcoFiers WilcoFiers added feat New feature or enhancement and removed info needed More information or research is needed to continue labels Oct 28, 2019
@WilcoFiers
Copy link
Contributor

Conclusion. This is a bug in paper-input, which does not allow accessing .tabIndex. That said, to avoid this type of issue, I do think we should drop using properties to get at attribute values. Using getAttribute() is more reliable, we've been burned by this before, so let's just solve it.

@straker
Copy link
Contributor

straker commented Nov 6, 2019

Fix this problem, then work it in over time for the rest of the code base.

@padmavemulapati
Copy link

Not seeing the now, as we have done fix. Closing the ticket as issue not replicating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or enhancement
Projects
None yet
Development

No branches or pull requests

4 participants