Page MenuHomePhabricator

Display warning when closing references tag is missing
Closed, ResolvedPublic

Description

Author: mwander

Description:
When there is an opening <references> tag but the corresponding closing </references> tag is missing, all further content is not rendered.

Feature request:
MediaWiki should display a warning to the user, similar to a missing <references> tag when there are existing <ref> entries.

Severity:
This happens regularly when users mistakenly attempt to close section with <references/>. I fixed a couple of hundred of these errors on dewiki (1.21wmf12).

Example wiki code:
Text.<ref name="namedref"/>

<references>
<ref name="namedref">some reference</ref>
<references/>

Ignored content

This section is now ignored.
{{Ignored|template}}


Version: master
Severity: normal

Details

Reference
bz46986

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:20 AM
bzimport added a project: Cite.
bzimport set Reference to bz46986.
bzimport added a subscriber: Unknown Object (MLST).

mwander wrote:

Another common type of error is to mistakenly use a single <references> tag instead of <references/>.

mwander wrote:

Yep, sorry for the dup.

  • This bug has been marked as a duplicate of bug 26145 ***