Page MenuHomePhabricator

Linter stripped tag not detected in image caption or wikilink text
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

Here's the raw code from en.WP:

[[Special:Contributions/Yellow Evan|Hurricane</font>]]

[[File:Vachesnormandes.jpg|thumb|[[Normande Cattle|Normande cow]]</center>]]

<gallery>
File:Lybius torquatus01.jpg|left|The brood parasite nestling, here peeking from the nest of a [[black-collared barbet]], waiting to be fed</center>
</gallery>

What happens?:
Linter stripped tags are present in:

  • Wikilink text
  • a File: caption
  • a File: caption within a gallery tag

None of the Linter errors are detected.

What should have happened instead?:
Each instance should emit a Linter "stripped tag" error.

Event Timeline

Arlolra triaged this task as Medium priority.
Arlolra moved this task from Needs Triage to Linting on the Parsoid board.
Arlolra moved this task from Backlog to Code Review on the Content-Transform-Team-WIP board.

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

[mediawiki/services/parsoid@master] Lint for stripped tags in nested content

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

Change 928130 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Add tests for linting stripped tags in nested content

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

Change 936777 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

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

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

Change 936777 merged by jenkins-bot:

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

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