axe-windows icon indicating copy to clipboard operation
axe-windows copied to clipboard

[BUG] False positive for "The name property of an element should not contain class names like 'Microsoft.*.*' or 'Windows.*.*'"

Open jalkire opened this issue 3 years ago • 3 comments

Describe the bug

There are cases where the name property for an element begins with "Microsoft." or "Windows." but is not a class name automatically used as the element's name. For example, a hyperlink could be labelled "Microsoft.com" because it links to microsoft.com. In this case, the name is correct.

Current state

We are keeping this bug open so users can report any other instances when they find a false-positive in this rule so we can understand better how to address it. We welcome feedback for improving the heuristic that detects class name strings in the Name property.

Additional context

We will continue to refine our approach so that this rule does not produce false positives.

In the meantime, if you should encounter this error, please let us know in this bug.

jalkire avatar Aug 19 '21 21:08 jalkire

Noting that a user reported this false positive caused by a list item displaying packages which happened to start with "Microsoft."

jalkire avatar Aug 19 '21 21:08 jalkire

This issue has been marked as ready for team triage; we will triage it in our weekly review and update the issue. Thank you for contributing to Accessibility Insights!

ghost avatar Aug 19 '21 21:08 ghost

Noting that #485 discusses this rule

jalkire avatar Aug 19 '21 21:08 jalkire

The noise from this was significantly reduced by #880. Closing now since we don't think there's a lot more to do here.

DaveTryon avatar Jul 28 '23 20:07 DaveTryon