Page MenuHomePhabricator

Additional p-elements injected in refs
Closed, ResolvedPublic

Description

If the <references/> is enclosed in a <div> the text content of the first <ref> has an additional <p> wrapped.


Version: unspecified
Severity: normal

Details

Reference
bz41243

Event Timeline

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

The following wikitext

<ref group="lower-roman">
Østlund 1992
</ref><ref group="lower-roman">
Østlund 1992
</ref><ref group="lower-roman">
Østlund 1992
</ref><ref group="lower-roman">
Østlund 1992
</ref><div><references group="lower-roman" /></div>

Will produce the following html code

<p><sup id="cite_ref-8" class="reference"><a href="#cite_note-8">[lower-roman 1]</a></sup><sup id="cite_ref-9" class="reference"><a href="#cite_note-9">[lower-roman 2]</a></sup><sup id="cite_ref-10" class="reference"><a href="#cite_note-10">[lower-roman 3]</a></sup><sup id="cite_ref-11" class="reference"><a href="#cite_note-11">[lower-roman 4]</a></sup></p>
<div>
<ol class="references">
<li id="cite_note-8"><span class="mw-cite-backlink"><a href="#cite_ref-8">↑</a></span>
<p><span class="reference-text">Østlund 1992</span></p>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><a href="#cite_ref-9">↑</a></span> <span class="reference-text">Østlund 1992</span></li>
<li id="cite_note-10"><span class="mw-cite-backlink"><a href="#cite_ref-10">↑</a></span> <span class="reference-text">Østlund 1992</span></li>
<li id="cite_note-11"><span class="mw-cite-backlink"><a href="#cite_ref-11">↑</a></span> <span class="reference-text">Østlund 1992</span></li>
</ol>
</div>

The full example is at

http://www.mediawiki.org/wiki/User:Jeblad/example_of_format_problem_in_references

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