Last modified: 2013-09-24 20:40:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56479, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54479 - Images: Parsoid handling of captions for the "frameless" and "none" formats differs from PHP parser
Images: Parsoid handling of captions for the "frameless" and "none" formats d...
Status: RESOLVED INVALID
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-23 19:02 UTC by Kyle Florence
Modified: 2013-09-24 20:40 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kyle Florence 2013-09-23 19:02:12 UTC
Parsoid will render captions for tags like:
[[File:Example.jpg|center|frameless|I'm a caption!]]

Whereas the PHP parser will ignore captions on inline tags. As stated in the MediaWiki help page on images: "Caption text only shows below the image in thumb and frame formats." http://www.mediawiki.org/wiki/Help:Images
Comment 1 Inez Korczyński 2013-09-23 20:03:12 UTC
Just a clarification that mentioned tag/wikitext syntax would generate a block element in PHP parser, and it also generates block element in Parsoid - the difference is presence of caption.
Comment 2 C. Scott Ananian 2013-09-23 20:16:27 UTC
This presentational difference is intended to be handled by CSS rules, as note 5 of https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images says.  Parsoid as a content representation needs to include all the information from the wikitext, even if some of it is invisible.
Comment 3 Kyle Florence 2013-09-24 20:40:40 UTC
Okay, that makes sense. Thank you.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links