Skip to content

Role attribute on SVGs to support aria-label #1192

@b1tzmast3r

Description

@b1tzmast3r

I noticed that the span MathJax_SVG has a role of math and the svg tag doesn't have a role attribute. Our tests have shown that putting role="img" on the svg tag will improve screen reader performance. Would you ever consider updating this?

Current Rendering:

<span class="MathJax_SVG" id="MathJax-Element-2-Frame" role="math"...>
<svg xmlns:xlink="http://www.w3.org/1999/xlink" aria-label="E equals M C squared" ...>

Recommendation:

<span class="MathJax_SVG" id="MathJax-Element-2-Frame"...>
<svg xmlns:xlink="http://www.w3.org/1999/xlink" role="img" aria-label="E equals M C squared"...">

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions