Page MenuHomePhabricator

Sortable Wikitable not displayed properly in Moble Apps
Closed, DuplicatePublic

Description

User reported:
https://en.wikipedia.org/wiki/List_of_the_oldest_living_people?wprov=sfla1

Table on this article is not displayed properly.

Screenshot:

Screenshot_20201210-191442.jpg (2×1 px, 643 KB)

Event Timeline

Reedy subscribed.

I note it's the same on the iOS app (6.7.3) too

https://en.m.wikipedia.org/wiki/List_of_the_oldest_living_people is fine both on my laptop and on my iPhone in Safari/Chrome

Reedy renamed this task from Sortable Wikitable not displayed properly in app to Sortable Wikitable not displayed properly in Moble Apps.Dec 13 2020, 10:52 PM
JMinor triaged this task as Medium priority.Dec 14 2020, 7:41 PM
JMinor moved this task from Needs Triage to Tracking on the Wikipedia-iOS-App-Backlog board.

https://en.wikipedia.org/api/rest_v1/page/html/List_of_the_oldest_living_people confirms that the table isn't parsed by Parsoid. Likely some markup error or some edge case. We'll investigate.

Okay, this turns out to be a case where Lua modules on wikis make some assumptions which aren't true when Parsoid is used. In this specific case, Scribunto has a copy of the core parser object that is different from a copy of the core parser that Parsoid retains and so there is no shared state between the two copies and the modules break.

https://en.wikipedia.org/w/index.php?search=mw.text.unstrip&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns828=1 shows there are about 47 hits for use of unstrip* methods that suffer from this problem. There are probably other uses of stateful functionality that will also break with Parsoid.

I'll create a separate task to figure out how to fix this.