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

Failure summary for "empty-table-header" is confusing for empty th #2956

Closed
connorjclark opened this issue May 22, 2021 · 2 comments
Closed
Assignees
Labels
fix Bug fixes pr A pr has been created for the issue rules Issue or false result from an axe-core rule
Milestone

Comments

@connorjclark
Copy link
Contributor

Product: axe-core

Expectation:

<table>
  <tr>
    <th></th>
  </tr>
</table>

Rule should fail saying: Element does not have text that is visible to screen readers

Actual:

Rule is marked incomplete and says: Unable to determine if element has children

Motivation: More immediate advice.


axe-core version: 4.2.1
@straker
Copy link
Contributor

straker commented Jun 1, 2021

Figured it out. Turns out that we marked the rule to return as Needs Review rather than failure when there is no text content. However, this causes the check to use the incomplete message rather than the failure message.

It's important to note that we do want the rule to be marked as incomplete and not fail as there are legit reasons a table header could be empty. See #2604

Since we want the rule to return as needs review by default, but also keep the Unable to determine if element has children message if the code errors, we might need to create a separate check instead of leveraging the has-visible-text one.

@straker straker added fix Bug fixes rules Issue or false result from an axe-core rule labels Jun 1, 2021
@straker straker added this to the axe-core 4.3 milestone Jun 10, 2021
@straker straker assigned straker and unassigned clottman Jun 10, 2021
@straker straker added the pr A pr has been created for the issue label Jun 10, 2021
@padmavemulapati
Copy link

Validated with the latest develop branch code base,
Earlier it was displaying as Unable to determine if element has children
Now it is appearing as Element does not have text that is visible to screen readers
Before changes:
image

after changes:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes pr A pr has been created for the issue rules Issue or false result from an axe-core rule
Projects
None yet
Development

No branches or pull requests

4 participants