Page MenuHomePhabricator

Images: When multiple h-alignment parameters are passed, Parsoid behavior differs from PHP parser behavior
Closed, ResolvedPublic

Description

For this wikitext: [[Image:Wiki.png|thumb|left|right|center|What's up?]]
Parser would put image on the left, but Parsoid would put it in the center.


Version: unspecified
Severity: normal

Details

Reference
bz48664

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:20 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz48664.

This kind of "buggy wikitext" is probably rare, and hence lowering priority in favor of other image bugs that are more critical.

[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]

Seems like PHP uses the *first* among a set of mutually-exclusive options, while Parsoid is using the *last*?

Change 114356 had a related patch set uploaded by Cscott:
Images: use first alignment, but last size and caption.

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

Change 114356 merged by jenkins-bot:
Images: use first alignment, but last size and caption.

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