Skip to content

Does the math role, as written, make sense? #940

@joanmarie

Description

@joanmarie

The current definition of the math role states the following:

Content with the role math is intended to be marked up in an accessible format such as MathML [MathML3], or with another type of textual representation such as TeX or LaTeX, which can be converted to an accessible format by native browser implementations or a polyfill library.

Why is an ARIA role required for polyfills to work? Unless I'm missing something, it's not. Nor is it, IMHO, our job to provide a means for others to hack around lack of MathML support in user agents.

The rest of our roles (with the exception of presentation/none) do a couple of things:

  • Cause the element with that role to appear in the accessibility tree
  • Provide a means whereby ATs can know what something is.

I think the math role should do the above two things and only the above two things.

Over time, we may want to consider adding other math related roles (e.g. to achieve parity with MathML or the "refresh" in progress of MathML). HOWEVER, that work, if agreed upon, would fall into the 1.4 cycle. Plus, APA is currently working on knowledge domain accessibility. They may come up with some solution which we'll want to consider.

In the meantime, here is my proposal for the 1.2 cycle:

  1. We remove from the spec what is currently Example 6. It's a large MathML example without an reference to ARIA other than the comment 'The math element has an implicit role="math".'
  2. We replace it with some simpler example which actually uses ARIA and demonstrates how some other host language than MathML (it could be HTML, SVG, whatever) combined with the math role would make sense for authors to consider. This example should have child elements.
  3. Assuming we accomplish 2, we can keep what is currently example 7, namely an img element with the math role and some alt text with a textual representation of the equation.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuremay add new concept(s) to ARIA which will require implementations or APG changes

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions