Page MenuHomePhabricator

PHP parser seems to be treating 'Frame' option in images case-sensitively
Open, MediumPublic

Description

Check the following in the enwiki sandbox:

[[Image:StsScuzzy.JPG|right|frame|275px|The Pond]]

[[Image:StsScuzzy.JPG|right|Frame|275px|The Pond]]

Event Timeline

This is a duplicate of T65694 and T64258 but maybe we're making the wrong choices there?

https://github.com/wikimedia/parsoid/blob/master/lib/wt2html/tt/LinkHandler.js#L1477-L1483

Aha ... so, this turns out to be a case-sensitivity bug in core.

Try

[[Image:StsScuzzy.JPG|right|frame|275px|The Pond]]

[[Image:StsScuzzy.JPG|right|Frame|275px|The Pond]]

in the enwiki sandbox.

ssastry renamed this task from Frame option in image leads to full-sized image output in Parsoid to PHP parser seems to be treating 'Frame' option in images case-sensitively.Mar 23 2017, 9:19 PM
ssastry updated the task description. (Show Details)
Arlolra triaged this task as Medium priority.Mar 28 2017, 2:41 PM
Arlolra added a project: MediaWiki-Parser.