Page MenuHomePhabricator

Images: Implement / fix alt= and class= options in images
Closed, ResolvedPublic

Description

It looks like at least alt used to work at some point, but does not right now.


Version: unspecified
Severity: normal

Details

Reference
bz45208

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 1:13 AM
bzimport set Reference to bz45208.

echo '[[File:Wiki.png|alt=foo|class=someclass]]' | node parse
<body><p data-parsoid='{"dsr":[0,41,0,0]}'><span class="mw-default-size someclass" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"alt","ak":"alt=foo"},{"ck":"class","ak":"class=someclass"}],"cacheKey":"[[File:Wiki.png|alt=foo|class=someclass]]","img":{"h":155,"w":135},"dsr":[0,41,null,null]}'><a href="./File:Wiki.png" data-parsoid='{"a":{"href":"./File:Wiki.png"}}'><img alt="foo" resource="./File:Wiki.png" src="//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png" height="155" width="135" data-parsoid='{"a":{"alt":"foo","resource":"./File:Wiki.png"},"sa":{"alt":"alt=foo","resource":"File:Wiki.png"}}'></a></span></p>