See parent task.
For media like:
$ echo '[[File:Foo.jpg|thumb|alt=-{raw1}-|title=-{raw2}-|-{caption}-]]' | php bin/parse.php --domain=zh.wikipedia.orgParsoid generates:
<figure data-mw='{"attribs":[["alt",{"html":"alt=<span typeof=\"mw:LanguageVariant\" data-parsoid='{\"fl\":[],\"src\":\"-{raw1}-\",\"dsr\":[25,33,2,2]}' data-mw-variant='{\"disabled\":{\"t\":\"raw1\"}}'></span>","txt":""}]]}'...>...</figure>
Note that the data-mw.attribs for the alt is both (a) on the wrong tag (the wrapper span, not the img) and (b) contains a bogus alt= prefix.
We're not going to fix (a) in this task, but we can fix (b). We expect that no one is actually using the value of data-mw.attribs here (need to double check VisualEditor) and so it won't cause any problems to remove the unnecessary/incorrect prefix.