Closed christianp closed 10 months ago
Hey @christianp, Can you elaborate on it more, I want to work on this
The template in the default theme for the 'mathematical expression' part type (known as 'jme'
in code) contains a <span class="jme-preview">
tag, which contains another span marked with aria-live
containing a rendering of the student's answer.
I think that that <span aria-live>
tag could instead be an <output>
tag, which the browser will automatically mark as aria-live
.
The <output>
tag should really have a for
attribute referring to the corresponding input, but at the moment we don't give id
attributes to part inputs. We should do this - the part's path combined with the question number will be a unique identifier.
Who knew there's an
<output>
tag?