Page MenuHomePhabricator

Links like "[[:/y/]]" and "[[/y̫/]]" displayed incorrectly in preview
Open, MediumPublicBUG REPORT

Description

https://en.wikipedia.org/w/index.php?title=User:ToBeFree/sandbox&oldid=968133171

Source code:

Actual output:

Correct preview in the normal source editor:

Incorrect preview in VisualEdit's new source editor:

Event Timeline

ToBeFree created this task.Oct 1 2019, 4:26 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 1 2019, 4:26 AM
ToBeFree updated the task description. (Show Details)Oct 1 2019, 4:27 AM
ToBeFree renamed this task from Links like "[[:/y/]]" displayed incorrectly in preview to Links like "[[:/y/]]" and "[[/y̫/]]" displayed incorrectly in preview.Oct 1 2019, 4:33 AM
ToBeFree updated the task description. (Show Details)
ToBeFree updated the task description. (Show Details)

Parsoid HTML has the same issue: https://en.wikipedia.org/api/rest_v1/page/html/User%3AToBeFree%2Fsandbox/918972167

So the specific examples that are parsed wrong are these two:

[[:/y̫/]]
[[/y̫/]]
matmarex edited projects, added Parsoid; removed VisualEditor.Oct 1 2019, 10:55 PM

I had already reported the first failing case in T221028: Parsoid incorrectly parses links to pages starting with a slash '/' in namespaces that can have subpages a few weeks ago, but the second one is new.

LGoto moved this task from Needs Triage to Backlog on the Parsoid board.Feb 15 2020, 12:05 AM
LGoto moved this task from Backlog to Bugs & Crashers on the Parsoid board.Feb 21 2020, 5:30 PM
LGoto triaged this task as Medium priority.May 1 2020, 4:26 PM
ToBeFree updated the task description. (Show Details)Fri, Jul 17, 12:46 PM