Page MenuHomePhabricator

Image alt attribute resolves without alt= in wikitext
Closed, ResolvedPublic

Description

This is related to bug #48924 and came up while working on VE's new media dialog.

Symptoms :

  1. Parsoid seems to ignore adding an alt attribute to an image that had no alt attribute previously -- the image still has no alt attribute post-save, even though the DM/CE in VisualEditor were both updated properly.
  1. When the alt string in 'alt=something' is changed, the resulting wikitext post-save is produced without the 'alt='

So, an original wikitext:

[[File:Someimage.png|thumb|265x265px|some caption|right|alt=some alternate text]]

After editing the alt property in VE, the wikitext post-save becomes:

[[File:Someimage.png|thumb|265x265px|some caption|right|some alternate edited text]]


Version: unspecified
Severity: normal

Details

Reference
bz56400

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:24 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz56400.

Change 103082 had a related patch set uploaded by Cscott:
Edited image attributes should override data-parsoid value.

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

Change 103082 merged by jenkins-bot:
Edited image attributes should override data-parsoid value.

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