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

Axe test: Ensures elements with an ARIA role that require child roles contain them #3220

Open
mamireh opened this issue Apr 15, 2024 · 1 comment
Labels

Comments

@mamireh
Copy link

mamireh commented Apr 15, 2024

Issue Summary

Activating speech in the accessibility (a11y) object would add the role="tree" to the output, leading to the problem "Ensures elements with an ARIA role that require child roles contain them."

Steps to Reproduce:

  1. Enabling the speech a11y object
  2. check the render
  3. notice the role="tree" included in the output

Technical details:

  • MathJax Version: 4.0.0-beta.4
  • Client OS: (e.g., Ubuntu)
  • Browser: (e.g., Chrome 29.0.1547.57)

I am using the following MathJax configuration:

MathJax = {
            chtml: {
                mathmlSpacing: true,
                fontURL:`...`
           },
           options: {
            enableEnrichment: true,
            a11y: {
              speech: true,                      // switch on speech output
              braille: true
            },
            menuOptions: {
              settings: {
                assistiveMml: true,   // true to enable assitive MathML
                collapsible: false,   // true to enable collapsible math
                explorer: true      // true to enable the expression explorer
              }
            }
          },
};

and loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/mathjax@4.0.0-beta.4/tex-mml-chtml.js"></script>

Supporting information:

https://codepen.io/mahmoud-ameara/pen/eYojqjW

@zorkow
Copy link
Member

zorkow commented Apr 18, 2024

Thanks for reporting this. This role is a left-over from our tests on using the ARIA tree widget for screen reader integration. However, the relevant SRE branch had not been merged, when beta.4 was released.

The overall integration has considerably changed in beta.5 which should come out any day now. If you would like to do some tests on that, we would appreciate that very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants