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

label-content-name-mismatch does not account for formatting markup #3316

Closed
curtbellew opened this issue Nov 29, 2021 · 2 comments
Closed

label-content-name-mismatch does not account for formatting markup #3316

curtbellew opened this issue Nov 29, 2021 · 2 comments
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

@curtbellew
Copy link

curtbellew commented Nov 29, 2021

Rule label-content-name-mismatch doesn't seem to account for formatting markup. Example:

<button aria-label="button label">button<br>label</button>

Will return a violation.

Product: axe-core

Expectation: Formatting should be disregarded.

Actual: The string is compared directly so any HTML tabs present cause a violation

Motivation:


axe-core version: 4.1.3
axe-webdriver, extension or other integration version: X.Y.Z

Browser and Assistive Technology versions

For Tooling issues:
- Node version: XX  
- Platform:  
@WilcoFiers
Copy link
Contributor

Thank you for reporting this. I've confirmed the issue. I agree, this shouldn't be failing. We'll look at what we can do about this.

@WilcoFiers WilcoFiers added fix Bug fixes rules Issue or false result from an axe-core rule labels Nov 30, 2021
@WilcoFiers WilcoFiers added this to the Axe-core 4.4 milestone Nov 30, 2021
@straker straker added the pr A pr has been created for the issue label Jan 12, 2022
@padmavemulapati
Copy link

Validated with the latest axe-core dev branch code base,
for the test script 'button
label' , where label content is formatted markup, should not encounter the failure on label-content-name-mismatch rule.
Not seeing such failure, can find in screenshot
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