Page MenuHomePhabricator

Mobile View MathML Fallback Image doesn't have `alt` property
Closed, ResolvedPublic

Description

Original Issue:https://github.com/openzim/mwoffliner/issues/164

See http://en.wikipedia.org/api/rest_v1/page/mobile-sections/Wilson%E2%80%93Cowan_model

Images with the class mwe-math-fallback-image-inline don't have an alt or alttext property.

Event Timeline

This issue is affecting Kiwix clients that need access to the alt text of the fallback images, so that we can typeset equations using MathJax. I'm sure it should be a relatively simple fix. The alt text is provided on equivalent Wikipedia pages.

LGoto triaged this task as Medium priority.Apr 17 2020, 4:16 PM
LGoto moved this task from Backlog to Missing Functionality on the Parsoid board.

A few days ago a user has open a third ticket (https://github.com/openzim/mwoffliner/issues/1402) about that on MWoffliner. I don't really understand why this old bug, which seems easy to fix, has not been tackled so far.

Kelson renamed this task from Mobile View MathML Fallback Image doesn't have `alttext` property to Mobile View MathML Fallback Image doesn't have `alt` property.Mar 26 2021, 7:49 AM
This comment was removed by Kelson.
Arlolra added a subscriber: Arlolra.

Seems like an issue with Mobile-Content-Service

Parsoid
https://en.wikipedia.org/api/rest_v1/page/html/Wilson%E2%80%93Cowan_model

<img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/bf5be62d9f63f5df52e8bc156f950d41e131d99f" class="mwe-math-fallback-image-inline" aria-hidden="true" style="vertical-align: -0.838ex; width:4.425ex; height:2.843ex;" alt="E(t)"/>

Page Content Service
https://en.wikipedia.org/api/rest_v1/page/mobile-html/Wilson%E2%80%93Cowan_model

<img src="//wikimedia.org/api/rest_v1/media/math/render/svg/e2434c9d80c34c95e25cc81ba6700f756a29dac5" class="mwe-math-fallback-image-inline" aria-hidden="true" style="vertical-align: -0.838ex; width:3.821ex; height:2.843ex;" alt="I(t)">
vadim-kovalenko changed the task status from Open to In Progress.Feb 6 2023, 10:01 AM
vadim-kovalenko claimed this task.
vadim-kovalenko moved this task from Backlog to In Progress on the Content-Transform-Team-WIP board.

Image attributes removal for mobile-sections has been introduced here - link.
Should we rollback the line with img: ['about', 'alt', 'resource'] to enable the alt attribute for images in mobile-section response?

cc: @MSantos , @Jgiannelos

Change 887947 had a related patch set uploaded (by Vadim Kovalenko; author: Vadim Kovalenko):

[mediawiki/services/mobileapps@master] Mobileapps: Mobile View MathML Fallback Image doesn't have 'alt' property

https://gerrit.wikimedia.org/r/887947

Change 887947 merged by jenkins-bot:

[mediawiki/services/mobileapps@master] Mobileapps: Mobile View MathML Fallback Image doesn't have 'alt' property

https://gerrit.wikimedia.org/r/887947

Dbrant added a subscriber: Dbrant.

Verified with a few different articles.