[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Newly added images in galleries always have |alt= (empty alt)
Closed, ResolvedPublic

Description

Newly added images in galleries always have |alt= (empty alt) in wikitext after saving the changes.

(I noticed this while testing changes for T273505)

Event Timeline

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

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

Change 811391 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Start altText as null to avoid empty alt for new gallery images

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

Arlolra claimed this task.
matmarex edited projects, added Editing-team (Kanban Board); removed Editing-team.
matmarex moved this task from Incoming to QA on the Editing-team (Kanban Board) board.
matmarex added a project: Editing QA.
EAkinloose subscribed.

✅ Newly added images in galleries have the expected alt text in wikitext after saving changes

Screenshot 2022-07-30 at 23.58.16.png (326×1 px, 62 KB)

When the caption is used as the alternative text
Screenshot 2022-07-31 at 00.01.10.png (340×1 px, 74 KB)