Page MenuHomePhabricator

Misplaced characters are injected after certain list items
Closed, ResolvedPublic1 Estimated Story Points

Description

After certain list items, a misplaced "A"-like character is injected.

Screenshot_20170214-105417.png (2×1 px, 301 KB)

This isn't a bug in MCS (it affects both plain MediaWiki and Parsoid HTML) and doesn't show up on mobile web (or iOS). This is caused by how our webview is handling some of the CSS provided by the Cite extension (specifically the ext.cite.style module), specifically around the 'after' pseudo-element.

Screen Shot 2017-02-14 at 10.27.42 AM.png (900×1 px, 666 KB)

Note that we need styling provided by Cite extension in order to display reference links in superscript (T132253)

Steps to reproduce

  1. Go to the article [[Rock music]]
  2. Open the nav box and view a sublist, e.g., "Stylistic origins"

Proof of theory

Comment out these lines in styles.css (provided by ext.cite.style), reload the app, and refresh the page.

Environments observed

App version: all
Android OS versions: all
Device model: all
Device language: all

Event Timeline

Change 338355 had a related patch set uploaded (by Dbrant):
[Facepalm] Load CSS as Unicode, not ASCII.

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

Change 338355 merged by jenkins-bot:
[Facepalm] Load CSS as Unicode, not ASCII.

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

Testing on Samsung-SM-JI20A Galaxy Express 3 (Android 6.0.1) and Wikipedia app 2.5.189-alpha-2017-02-22. According to this screencap it is fixed, the Â's are no longer displayed:

T158067.png (800×480 px, 68 KB)