nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.12k stars 637 forks source link

MathML works in buttons in Firefox but not Chrome #9037

Open pbblair opened 5 years ago

pbblair commented 5 years ago

I was happy to find that MathML is working well in Chrome now as well as Firefox. But when i was testing I did notice this discrepancy:

Steps to reproduce:

  1. With Chrome, go to http://superkeen.com/web/mathmltest/mathmlfocus.html
  2. Tab through the page.
  3. Pay special attention to the spoken text when reaching the page's only button.
  4. Repeat with Firefox to see how it's supposed to sound.

Actual behavior:

The button is read aloud as:

The fraction and the exponent are not equal.

Expected behavior:

The button should be read aloud with the MathML as:

The fraction two thirds and the exponent two cubed are not equal.

System configuration

NVDA installed/portable/running from source:

installed

NVDA version:

NVDA 2018.3.2

Windows version:

Windows 10 Pro N Version 1803

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

MathPlayer 4.0, Chrome 71.0.3578.80 (64-bit), Firefox 63.0.3 (64-bit)

Other information about your system:

Other questions

Does the issue still occur after restarting your PC?

yes

Have you tried any other versions of NVDA?

no

Adriani90 commented 5 months ago

This works in browse mode but not in focus mode. Note that mathML conponent is not updated anymore, It is recommended to uses the add-on access8math or mathcat, which you can get from the NVDA add-on store in NVDA menu / tools.

cc: @tsengwoody, @NSoiffer is there any reason the math elements are not reported in focus mode? Is this something which needs to be fixed in NVDA?

Adriani90 commented 1 week ago

@NSoiffer any suggestions? cc: @SaschaCowley

NSoiffer commented 1 week ago

I just tried it with 2024.4 on Firefox and Chrome (Version 130.0.6723.92 (Official Build) (64-bit)) on Windows 10 using MathCAT. I'm almost certain that MathPlayer or access8math would do the same. Here's what I found that differs from the linked page:

Button Pass: Windows/Firefox/NVDA/MathPlayer *** Now passes -- Fail: Windows/Chrome/NVDA/MathPlayer (math not spoken at all)

I'm pretty sure the radio button and checkbox examples all fail because the "name" calculation in the ARIA rec doesn't say what to do about MathML. I see that there is an open issue on this at the W3C. Hence, this isn't an NVDA issue because the information isn't exposed to NVDA. I think this issue can be closed.

I briefly test with JAWS 2024.2409.2 and there is some improvement there. In Chrome (I didn't try Firefox), JAWS reads the math for paragraphs and div/span. It stops at the math and you need to hit down arrow (other keys probably work also) to get it to continue reading. There is an open issue related to this for JAWS

Adriani90 commented 1 week ago

Thanks for this valuable input. Did you also test in focus mode? Or only in browse mode?

I think it makes sense to let this issue open to track the progress.

NSoiffer commented 1 week ago

I only tested focus mode by tabbing to all the instances. I just tried a few examples in browse mode and (not surprisingly to me), the buttons read the math because then you are reading content, not the label's computed name.

It is interesting that the earlier examples (headings, etc) read differently in browse and focus mode, where I think focus mode is better. In focus mode, the entire contents is read. In browse mode, reading stops before the math. Down arrow reads just the math, and down arrow stops before the next bit of math, etc. I've heard several complaints but no one (including me) has written up the issue as far as I can see. Do people think this is a bug or a feature?