Page MenuHomePhabricator

indented ref tags in poem tags are rendered as plain text
Closed, ResolvedPublicBUG REPORT

Description

Originally reported on the English Wikipedia help desk.

List of steps to reproduce (step by step, including full links if applicable):
Using the Wikipedia Android app, navigate to a page with content like this (minimal example at w:User:Rummskartoffel/indented ref in poem tag example, see also https://en.wikipedia.org/api/rest_v1/page/html/User:Rummskartoffel%2Findented_ref_in_poem_tag_example):

<poem>
:<ref>using tags</ref>
</poem>

<poem>
:{{#tag:ref|using tag parser function}}
</poem>

What happens?:
The page is rendered as the following two lines: the indented literal text <ref>using tags</ref> on the first line, followed by an indented reference footnote on the second line. The reference list contains a single entry with the label using tag parser function.

What should have happened instead?:
The page should be rendered as the following two lines: an indented reference footnote on the first line, followed by a different indented reference footnote on the second line. The reference list should contain two entries, with the labels using tags and using tag parser function , respectively. This is the behaviour of the web interface.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.: N/A

Event Timeline

Change 811338 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[mediawiki/services/parsoid@master] WIP: Fix bug in Parsoid's Poem implementation

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

Arlolra triaged this task as Medium priority.Jul 5 2022, 4:57 PM
Arlolra moved this task from Needs Triage to Bugs & Crashers on the Parsoid board.

Change 811338 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Fix bug in Parsoid's Poem implementation

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

Change 814892 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/vendor@master] Bump parsoid to 0.16.0-a16

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

Change 814892 merged by jenkins-bot:

[mediawiki/vendor@master] Bump parsoid to 0.16.0-a16

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