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

Not reading aria-description when there are 2 consecutive spaces in the string. (Firefox) #14580

Open
pferreeHogan opened this issue Jan 23, 2023 · 2 comments
Labels
app/firefox blocked/needs-external-fix p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.

Comments

@pferreeHogan
Copy link

pferreeHogan commented Jan 23, 2023

Steps to reproduce:

In FireFox v109.0, given the following code:

<div aria-role="figure" aria-label="Label 1" aria-description="This description is read.">
  <span aria-hidden="true">content</span>
</div>
<div aria-role="figure" aria-label="Label 2" aria-description="This description is not read because of the extra space between these words, dog  cat.">
  <span aria-hidden="true">content</span>
</div>

Actual behavior:

The first div is communicated correctly (both label and description), the second just reads the label, not the description.

Expected behavior:

The aria-description for "Label 2" is communicated as well.

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

NVDA version:

Windows version:

Name and version of other software in use when reproducing the issue:

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Have you tried any other versions of NVDA? If so, please report their behaviors.

If NVDA add-ons are disabled, is your problem still occurring?

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

@jcsteh
Copy link
Contributor

jcsteh commented Feb 2, 2023

This occurs because Firefox compresses multiple spaces down to one space in IAccessible::accDescription, but not in the description object attribute. This issue will be eliminated when Firefox implements the description-from object attribute, though a small change will be needed in NVDA to make it use that instead of the description object attribute.

@pferreeHogan
Copy link
Author

Thanks for the explanation and update!

@seanbudd seanbudd added p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation. labels Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app/firefox blocked/needs-external-fix p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.
Projects
None yet
Development

No branches or pull requests

3 participants