Last modified: 2014-11-17 14:32:16 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 T74416, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72416 - Navbox rendering incorrect, all items in the same line
Navbox rendering incorrect, all items in the same line
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-23 08:51 UTC by Kelson [Emmanuel Engelhart]
Modified: 2014-11-17 14:32 UTC (History)
4 users (show)

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


Attachments

Description Kelson [Emmanuel Engelhart] 2014-10-23 08:51:57 UTC
Parsoid output has broken output because Mediawiki:common.css is not included.

For example:
http://parsoid-lb.eqiad.wikimedia.org/frwiki/Guerre_froide?oldid=108085194

Here the original version:
https://fr.wikipedia.org/w/index.php?title=Guerre_froide&oldid=108085194

And with the visual editor:
https://fr.wikipedia.org/w/index.php?title=Guerre_froide&oldid=108085194&veaction=edit

Like you can see the infobox width is huge probably because there is no rule for the "infobox_v2" CSS class.
Comment 1 Marc Ordinas i Llopis 2014-10-28 15:53:46 UTC
Mediawiki:Common.css is included by the parsoid-rendered page, you can see this inspecting the infobox table with Firebug (or similar).

The rendering problem comes from the navboxes at the end, which have all the links in each cell in the 2nd column in the same line, instead of wrapping them. If (using Firebug) the .nowrap style (or just "white-space: nowrap;") is disabled, the page returns to a more appropriate width.

The only difference I can see in the HTML is the presence of multiple mw:Entity elements to indicate the white-space present in wikitext, so maybe that's what's interfering with nowrap.
Comment 2 ssastry 2014-11-17 14:31:40 UTC
I don't think it is mw:Entity entirely ... I am testing a html dump from that page where I replaced the mw:Entity with space or the entity as in the PHP html and it didn't change the rendering substantially. This requires some more digging into the HTML diffs between the two.

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


Navigation
Links