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

MathML is coming, need to consider what we need to do to support it #3285

Open
WilcoFiers opened this issue Nov 14, 2021 · 2 comments
Open
Labels
core Issues in the core code (lib/core) info needed More information or research is needed to continue standards Issues in the ARIA standards objects (lib/standards)

Comments

@WilcoFiers
Copy link
Contributor

MathML is new in Chrome 97, still behind a feature flag, but that means it's coming. Chrome is the last major browser without support for MathML, so native support for it is getting pretty close.

I doubt anyone's considered what impact native MathML has to axe-core rules, so we're going to need to look into that in the near future. First priority there is to make sure we don't produce false positives. Second is to figure out what new rules we can write for it.

@WilcoFiers WilcoFiers added core Issues in the core code (lib/core) info needed More information or research is needed to continue standards Issues in the ARIA standards objects (lib/standards) labels Nov 14, 2021
@danielweck
Copy link

Hello, MathML markup inside headings and table headers triggers errors. See:

daisy/ace#398

daisy/ace#410

@dbjorge
Copy link
Contributor

dbjorge commented Apr 22, 2024

For the higher priority "not producing false positives" part, the lowest-hanging fruit is probably just setting up a new mathAlttextText: attrText.bind(null, 'alttext') method in /lib/commons/text/native-text-methods.js and adding namingMethods: ['mathAlttextText'] to the math spec in /lib/standards/html-elms.js.

The bigger chunk of work there would be validating UA/AT compat, not the actual code change. We'd want to verify for each accessibility-supported UA/AT combination that it respects the alttext attribute on a <math> element and that its behavior works as expected consistently. I'd expect it to fit into step ARIA 1.2 section 4.3.2 step 2.E; the MathML 4 spec is a bit vague about exactly what "unspecified" vs "specified as empty" means, but I'd expect it to be treated similarly to an img alt attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues in the core code (lib/core) info needed More information or research is needed to continue standards Issues in the ARIA standards objects (lib/standards)
Projects
None yet
Development

No branches or pull requests

3 participants