Overview
HTML5 now allows <svg>
and <math>
mark up an HTML document without depending on external namespaces (a decent overview here ). Both have their own analog alt
attributes (see below), which today are virtually ignored by screen readers. Therefore, these items are not accessible to blind users.
Are there any plans to implement a standard alt text agreement for these new elements? I looked through documents and dried in a dry state
More details
Regarding SVG: Alternate SVG text can be thought of as the contents of the root title
or desc
tag.
<svg> <title>An image title</title> <desc>This is the longer image description</desc> ... </svg>
I found one screen reader that reads it as such, but is this the standard? Previous SVG insertion methods also had accessibility issues, since the <object>
tags were handled using screen readers.
Regarding MathML: Alternate MathML text should be stored in the alttext
attribute.
<math alttext="A squared plus B squared equals C squared"> ... </math>
Since screen readers don't seem to recognize this, the MathJax math rendering library inserts text into the aria-label
attribute when -time is run.
<span aria-label="[alttext contents]">...</span>
Unfortunately, NVDA, JAWS and others do not read these labels reliably. (More on WAI-ARIA )
For both of them: the lack of success in mostly unsupported ARIA attributes, I tried using title
attributes. They also seem to be ignored on these "alien" HTML elements.
Wrap-up
More than a quick hack, I'm looking for a recommended way to place alternate text in these new HTML elements. Perhaps there is a W3C spec that I'm missing? Or is it too early in the game?
html5 accessibility svg mathml
Courtney Christensen Jan 14 2018-11-11T00: 00Z
source share