Last modified: 2014-01-24 21:46:41 UTC
See example below: [subbu@earth lib] echo "[[Image:Foo.jpg|thumb|200px]]" |node parse <body data-parsoid='{"dsr":[0,30,0,0]}'><figure typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"200px"}],"cacheKey":"[[Image:Foo.jpg|thumb|200px]]","dsr":[0,29,2,2]}'><a href="./File:Foo.jpg" data-parsoid='{"a":{"href":"./File:Foo.jpg"},"dsr":[2,27,null,null]}'><img resource="./File:Foo.jpg" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Foo.jpg/200px-Foo.jpg" height="131" width="200" data-parsoid='{"a":{"resource":"./File:Foo.jpg","height":"131"},"sa":{"resource":"Image:Foo.jpg","height":""}}'/></a></figure> </body>
This is not specific to images. Maybe something to handle in dom.cleanup.js?
Fixed in https://gerrit.wikimedia.org/r/#/c/107730/