Newly added images in galleries always have |alt= (empty alt) in wikitext after saving the changes.
(I noticed this while testing changes for T273505)
matmarex | |
Jun 14 2022, 2:33 PM |
F35365129: Screenshot 2022-07-31 at 00.01.10.png | |
Jul 30 2022, 11:07 PM |
F35365126: Screenshot 2022-07-30 at 23.58.16.png | |
Jul 30 2022, 11:07 PM |
Newly added images in galleries always have |alt= (empty alt) in wikitext after saving the changes.
(I noticed this while testing changes for T273505)
Hmm, I wonder if it has something to do with https://github.com/wikimedia/parsoid/commit/153c47accb57307be2eab78f27fe242d1803e18c
Hmm, I wonder if it has something to do with https://github.com/wikimedia/parsoid/commit/153c47accb57307be2eab78f27fe242d1803e18c
Nah, it predates that. VE is setting an empty attribute alt="". It needs to distinguish better internally null vs empty string.
Change 811391 had a related patch set uploaded (by Arlolra; author: Arlolra):
[mediawiki/extensions/VisualEditor@master] Start altText as null to avoid empty alt for new gallery images
Change 811391 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Start altText as null to avoid empty alt for new gallery images
✅ Newly added images in galleries have the expected alt text in wikitext after saving changes