Page MenuHomePhabricator

Adapt Parsoid to show "missing main content" reference error (S)
Open, Needs TriagePublic

Description

Context

Assume Wikitext like

<ref details="page 1" name="missingbook" />
<references />

There's an error in the legacy parser
Cite error: Invalid <ref> tag; no text was provided for refs named "missingbook".

image.png (941×111 px, 11 KB)

But not in the parsoid parser

image.png (941×111 px, 2 KB)

Estimation

S

Event Timeline

Quick note: I think this is not related to the previous tickets T384599 and T400888. I think this error here really is never generated in the Parsoid code.

This specific error is also rather inconsequential and unlikely to have much impact on real-world wikis. The fact that the main ref is empty is clearly visible. The red error message is not needed to see this. The only relevant impact is that the tracking category is not set, which makes it impossible to systematically track such mistakes and clean them up.

This specific error is also rather inconsequential and unlikely to have much impact on real-world wikis. The fact that the main ref is empty is clearly visible. The red error message is not needed to see this. The only relevant impact is that the tracking category is not set, which makes it impossible to systematically track such mistakes and clean them up.

I disagree, it's very easy to miss that the main ref is empty. Compare e.g. https://tl.wikipedia.org/w/index.php?title=Paniniwala&oldid=2215424#cite_ref-12 in Parsoid and legacy parser.

Reference Previews shows the sub-reference in Parsoid without any indication that there's missing main ref content.

Screenshot From 2026-07-09 12-00-43.png (696×452 px, 122 KB)
Screenshot From 2026-07-09 12-01-04.png (696×452 px, 115 KB)

It's a bit more obvious when looking at the reference list, but easy to miss even there.

Screenshot From 2026-07-09 12-01-36.png (1,477×898 px, 550 KB)
Screenshot From 2026-07-09 12-01-49.png (1,477×898 px, 584 KB)

Haha, no need to argue. I guess what I wanted to say that the technical show stopper is more the category. And since the category doesn't make sense without the corresponding message they are equally relevant from a user's perspective.

lilients_WMDE renamed this task from Adapt Parsoid to show "missing main content" reference error to Adapt Parsoid to show "missing main content" reference error (S).Aug 21 2026, 8:04 AM