Error generation of unbalanced <ref><references/>: No error is shown if missing </ref>-tag is the last ref tag
OpenPublic

Description

If the missing </ref>-tag is the last ref tag, no error message is displayed.
Works correct: <ref>broken <ref>correct</ref> <references />
Doesn't work : <ref>broken <references />

See also https://bugzilla.wikimedia.org/show_bug.cgi?id=6199#c25 for comments on that


Version: unspecified
Severity: minor
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=26145

bzimport added a project: Cite.Via ConduitNov 21 2014, 10:22 PM
bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz15712.
Tobias created this task.Via LegacySep 24 2008, 3:18 PM
jayvdb added a comment.Via ConduitMay 6 2011, 11:43 AM

I think this is fixed.

bzimport added a comment.Via ConduitJan 18 2012, 7:48 PM

dunc_harris wrote:

No this isn't fixed per se:

the sequence "<ref><references/>" generates the error:

"Cite error: Cite error: There are <ref> tags on this page, but the references will not show without a <references/> tag."

But this is the wrong error message because there is indeed a <references/> in the page. The error should be:

"Cite error: Closing </ref> missing for <ref> tag"

or maybe even:

"Cite error: Closing </ref> missing for last <ref> tag"

Gadget850 added a comment.Via ConduitJul 21 2014, 2:51 PM

Duplicate of Bug 21798

Jdforrester-WMF added a comment.Via ConduitJul 21 2014, 3:43 PM
  • Bug 21798 has been marked as a duplicate of this bug. ***
Ciencia_Al_Poder added a comment.Via ConduitJul 21 2014, 4:56 PM

(In reply to Duncan Harris from comment #2)

the sequence "<ref><references/>" generates the error:

"Cite error: Cite error: There are <ref> tags on this page, but the
references will not show without a <references/> tag."

But this is the wrong error message because there is indeed a <references/>
in the page. The error should be:

"Cite error: Closing </ref> missing for <ref> tag"

or maybe even:

"Cite error: Closing </ref> missing for last <ref> tag"

It doesn't output an error message anymore because, apparently because bug 66860 has been resolved and it now just silently eats the error message.

Gadget850 added a comment.Via ConduitJul 21 2014, 9:14 PM

If the last </ref> was missing, then the reference list markup would get eaten and it would trigger 'MediaWiki:Cite error refs without references'. On enwiki, this would put the page into an error category and it would be fixed.

Bug 66860 added the automatic reference list, so 'MediaWiki:Cite error refs without references' is never triggered. Instead, the unclosed <ref> eats the following content and includes it in the last rendered reference.

Example:

<ref>1

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Bu if the reference list markup exists, then the last reference is generated twice and the the reference list markup is exposed.

Example:

<ref>1

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

<references />

There may be other instances where this renders differently.

Gadget850 added a comment.Via ConduitJul 28 2014, 3:08 PM

Bumping up importance since we can no longer track and resolve this problem.

Add Comment