What is the problem?
When looking at a Phonos element without JavaScript, the aria-label is not included in the HTML.
aria-label is used by screenreaders to describe the Phonos element. It is normally of the form: Listen to the IPA pronunciation of Fly.
So, if you use a screenreader and disable JavaScript, you won't get a (nice) description.
Steps to reproduce problem
- Disable javascript on your browser
- Go to an article with Phonos (e.g. https://patchdemo.wmflabs.org/wikis/34377c5aff/wiki/Main_Page)
- Inspect the HTML of the Phonos element
Expected behavior: The <a> element has an aria-label attribute
Observed behavior: It does not
Environment
Wiki: local docker Phonos 0.1.0 (44b1ff7) 08:20, 10 October 2022.