Page MenuHomePhabricator

Unclosed transclusion eats next section in rendering, but not in section editing
Closed, ResolvedPublic


Author: zigger

has an unclosed transclusion in section 14, breaking rendering and
section-editing (from bug 2128 #c5).

Test case:

sec 1


sec 2


sec 3


The test page is rendered without most of section 2, including TOC (if there are
more sections) and section-numbering of edit-links. Editing section 3 then
brings up section 2.

Version: 1.4.x
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:34 PM
bzimport set Reference to bz2375.
bzimport added a subscriber: Unknown Object (MLST).

avarab wrote:

This is due to the way MediaWiki garbage collects invalid syntax, it should
probably just output a literal


sec 2


Instead of removing it completely from the output.

gangleri wrote:

Thanks Zigger for debugging the page!

The error described in bug 2128 #c5 refers to &oldid=155874 of
[[eo:Vikipedio:Trukoj/Plurnivela uzado de ŝablonoj]] .
Do not hesitate to revert to this version if you want to experience the
behaviour reported earlier.

The testcase from comment 0 is available at

Regards Reinhardt [[user:gangleri]]

gangleri wrote:


It might be possible that this behavior could be detected if
"bug 662: Templates inside template parameters"
would be implemented.

The parser should see that the number of opening "{{" is not identical with the
number of "}}".

Anyhow it should be defined what should happen in such cases.

Please compare with
"''bug 885: silent insertion of code by the parser''"

Regards Reinhardt [[user:gangleri]]

zigger wrote:

*** Bug 1978 has been marked as a duplicate of this bug. ***