-
Notifications
You must be signed in to change notification settings - Fork 125
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
Does the math role, as written, make sense? #940
Comments
Something I discovered as commented-out text in the ARIA spec is:
That's strikes me as text which we might want in our to-be-revised definition of the |
The only way the ARIA 1 version of But if we're moving towards exposing MathML as a structured document, then this approach falls apart. In that case, we need a way to represent the full content in ARIA, and it may make more sense to think of But it sounds like we're a ways away from being able to fully specify an accessible representation of MathML, so maybe it's necessary to still keep the "embedded object" interpretation for now. For the example of an With that approach in mind, I'd add the following clarifications:
This should handle the three of the most common cases as best as possible:
Polyfills for converting MathML or Latex would still be expected to generate one of these representations. If a required polyfill doesn't run, the AT experience wouldn't be any worse than the visual experience, reading out the plain text representation from the markup. |
This is exactly what I'm thinking.
I personally don't think the status of MathML has anything to do with ARIA. Regardless, are you aware of authors or user agents that are relying upon the ARIA |
Well, MathML would break unless you specifically allow user agents to treat MathML specially. But for any element with (Sorry if my original comment was unclear. I rewrote it many times, changing my conclusions as I wrote them out.) |
How would MathML break? MathML doesn't depend on there being an ARIA |
So, you're suggesting that (for now, anyway), That could probably work, so long as there was a note that browsers that do support MathML should not support any ARIA role on |
I am most definitely not suggesting that. Look at the mappings right now in the Core-AAM for math in the current Rec. Here's what both a
In other words, the mappings for both the HTML element and the ARIA role boil down to "It's something mathy, ATs. Now you figure out what to do with it." So ATs already have to look at the contents and decide if it's native MathML, or an image with some So if we leave HTML-AAM as it is, and Core-AAM as it is, and make the ARIA
I think that duplicating the role like that is already frowned upon in some spec somewhere. I forget where now. And an author probably could come along and do something like |
@joanmarie Ok, let's see if I can update my understanding again: The proposal is to treat the element with a For MathML, a |
Going over some of @cookiecrook's concerns from #425, I see one remaining issue: Should an For backwards compatibility with the ARIA 1 definition it should. But that's not consistent with other "container" roles like Demo using an SVG equation where the text content doesn't make sense without the drawing, but an But, it's already broken today in Chrome and Firefox. They both expose the text nodes in the SVG in addition to the label on the container. In contrast, EdgeHTML and (I presume) WebKit follow the ARIA 1 spec and treat the child content as presentational. The demo also includes an The final test in that demo is a So, in conclusion: I think switching to a simple container model for |
Yup! Apologies for not being clearer.
Exactly. |
In my opinion no. And if the group agrees to make children-presentational=false for the |
For now I'm going to assume that we have general consensus regarding moving the My thoughts: The purpose of the
Is there any reason why we shouldn't limit our revised |
I'm assuming that as part of HTML role parity, ARIA 1.2 will also have a dedicated "code" role? (as tracked in #874) If so, I think the "math" role can & should continue to be defined specifically for mathematical expressions.
This advice might need to be worried carefully, to support existing content that uses |
(Cross-posting from #425 (comment)) It may be worth having an example of using E.g., working from the pre-formatted example: <div id="eq-1" role="math" aria-labelledby="eq-1-linear">
<p id="eq-1-linear" hidden>x=⟮−b±√⟮b²−4ac⟯⟯÷2a</p>
<pre aria-hidden="true">
−b±√⟮b²−4ac⟯
x = -------------
2a
</pre>
</div> |
Something else that occurs to me: Do we want to limit the mathematical expressions to static content? I'm thinking we do. MathJax's built-in explorer uses the So the revised |
Something that was raised during the face-to-face is the creation of a property like |
The current definition of the
math
role states the following: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: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:
math
role would make sense for authors to consider. This example should have child elements.img
element with themath
role and somealt
text with a textual representation of the equation.Thoughts?
The text was updated successfully, but these errors were encountered: