https://bugzilla.wikimedia.org/show_bug.cgi?id=49837
Web browser: ---
Bug ID: 49837
Summary: Right-aligned inline images don't rt properly in VE
Product: VisualEditor
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Input wikitext:
[[File:Wiki.png|400px|right|Foo]]
Parsoid HTML:
<figure class="mw-halign-right" typeof="mw:Image"
data-parsoid='{"optList":[{"ck":"width","ak":"400px"},{"ck":"right","ak":"right"},{"ck":"caption","ak":"Foo"}],"cacheKey":"[[File:Wiki.png|400px|right|Foo]]","img":{"h":155,"w":135,"wdset":true},"dsr":[0,33,2,2]}'><a
href="./File:Wiki.png"
data-parsoid='{"a":{"href":"./File:Wiki.png"},"dsr":[2,null,null,null]}'><img
resource="./File:Wiki.png"
src="http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png" height="155"
width="135"
data-parsoid='{"a":{"resource":"./File:Wiki.png","width":"135"},"sa":{"resource":"File:Wiki.png","width":"400"}}'></a><figcaption
class="mw-figcaption"
data-parsoid='{"dsr":[null,31,null,null]}'>Foo</figcaption></figure>
VE HTML without modifications:
<span typeof="mw:Image"
data-parsoid="{"optList":[{"ck":"width","ak":"400px"},{"ck":"right","ak":"right"},{"ck":"caption","ak":"Foo"}],"cacheKey":"[[File:Wiki.png|400px|right|Foo]]","img":{"h":135,"w":135,"wdset":true},"dsr":[0,33,2,2]}"><a
href="../File:Wiki.png"
data-parsoid="{"a":{"href":"../File:Wiki.png"},"dsr":[2,null,null,null]}"><img
src="http://upload.wikimedia.org/wikipedia/mediawiki/b/bc/Wiki.png"
resource="../File:Wiki.png" width="135" height="135"
data-parsoid="{"a":{"resource":"../File:Wiki.png","width":"135"},"sa":{"resource":"File:Wiki.png","width":"400"}}"></a></span>
The figure / figcaption changed to span, but no data-mw is set. This causes
diffs in quite a few pages including [[Chloroplast]].
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l