Page MenuHomePhabricator

Raw HTML shown in ToC heading entries when using text template with Parsoid in all themes except Vector-2022
Closed, ResolvedPublicBUG REPORT

Description

What happens?:

On some open dictionary projects, especially on some of the major Wiktionary project languages ​​such as French, German and Russian, sections in entries use templates inserted between the section syntax to unify section names, for example:

=== {{S|noun}} ===

will come out

=== noun ===

Previously this usage did not cause any errors and it produced the correct table of contents like this:

Contents
1. noun
2. verb

but for some reason, older themes, except the new Vector 2022, this usage makes the table of contents appear from <span> </span> in each section like this:

Contents
1. <span>noun</span>
2. <span>verb</span>

See the link below to confirm the error.

This bug just appeared after update 1.45.0-wmf.22 (rMW3d62d3a9fed9) was deployed yesterday, old version before this version did not have this bug.

See also the testcase and description in duplicate T406755: Vector TOC started to show <i>-tags instead of showing the italic text used in the headers

https://nl.wiktionary.org/wiki/proscriptie?useskin=vector

nlwiki_funky_TOC.png (253×357 px, 28 KB)

Event Timeline

Kateru175 updated the task description. (Show Details)
Aklapper renamed this task from Error of extra span tags appearing when using text template as heading name in old themes. to Raw HTML shown in ToC heading entries when using text template with Parsoid in all themes except Vector-2022.Oct 8 2025, 3:48 PM
ssastry claimed this task.

The revert is now deployed and I verified that all the above pages are fixed. Resolving now.

The revert is now deployed and I verified that all the above pages are fixed. Resolving now.

Thanks for the swift solution.