question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Report case sensitivity issues

See original GitHub issue

Saw 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:

  1. 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.

  2. In such cases, it would be good for axe-core to explicitly call out that the item was failed because of case sensitivity.

  3. 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:open
  • Created 3 years ago
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
strakercommented, Jun 1, 2022

@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 call toLowerCase on the role before it passes it to isValidRole (that will stop aria-roles from failing on the roles). We’ll then want to add a new check to the aria-roles rule that specifically looks for roles that are not all lower case and flag them as Needs Review (i.e. returns undefined) and informs the user that roles that are not all lower case are not widely supported.

1reaction
jnurthencommented, Feb 7, 2022

Just confirmed with @mfairchild365 that dragon is case sensitive. The following does not work in Dragon

<div role="Button">Capital B</div>
<div role="BUTTON">All caps</div>
  • Dragon does this via document.querySelectorAll (case sensitive attribute values by default) but apparently this would work if Nuance decided to finally update their code… document.querySelectorAll(“[role=button i]”)
  • Dragon will discover the element if it has an onclick attribute and then parse out that it is a button no matter what case was used (this threw me through a loop at first because I tested by adding onclick to all the buttons and it somehow worked)

Looking at the code this looks correct. I was only looking at the clickable code branch not the non-clickable code branch previously.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found