Report case sensitivity issues
See original GitHub issueSaw a question come up today about:
<ul role="list">
<li role="listItem">...</li>
</ul>
The problem is that capital letter “I” in “listItem”. There are two possible issues there:
-
I’m not so sure this should be case sensitive, we should test our ARIA rules to figure out where case sensitivity matters and where it doesn’t. If it followed the specs, it should be case insensitive in HTML and case sensitive in XHTML.
-
In such cases, it would be good for axe-core to explicitly call out that the item was failed because of case sensitivity.
-
It would be nice to report this particular case as needs review instead of a fail, because the implicit role here is the correct role. This is a false positive.
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (15 by maintainers)
Top Results From Across the Web
Impact of changing case sensitivity in Analytics Report Suites
Customer Journey Analytics; Analytics. Issue/Symptoms Case sensitivity settings can alter reports, specifically when using segments/filters.
Read more >Reports: Case sensitivity for Text Fields (Filtering and Summary)
"Filtering isn't case sensitive. For example, searching State contains ID returns all matches for “ID”, but also returns any instances of “ ...
Read more >How to Create Case-Insensitive Prompts and Filters - IBM
Problem. Report with a type in prompt is not returning expected records because the filter is case-sensitive and users might not always type ......
Read more >Solving Issues of Case Sensitivity in Matillion - InterWorks
Suddenly, the cool thing you've built is abstracted behind a wall of error messages your end users are hitting. Case sensitivity was never...
Read more >How to avoid case sensitivity in filter
For Example: In my data present value as: "XYZ" and i search 'xyz' its show error because i search as small letter. I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dan-tripp Alright. Talked with @WilcoFiers and we decided that we just want to deal with informing users of the case sensitivity problem and deal with axe-core being case insensitive in a separate issue.
So what we’ll want to do is update the
invalidrole
check to calltoLowerCase
on the role before it passes it toisValidRole
(that will stoparia-roles
from failing on the roles). We’ll then want to add a new check to thearia-roles
rule that specifically looks for roles that are not all lower case and flag them as Needs Review (i.e. returnsundefined
) and informs the user that roles that are not all lower case are not widely supported.Looking at the code this looks correct. I was only looking at the clickable code branch not the non-clickable code branch previously.