Page MenuHomePhabricator

SGML comments within REF tags are mangled
Closed, ResolvedPublic

Description

Author: peter

Description:
As I announced at
http://en.wikipedia.org/wiki/Wikipedia%3AVillage_pump_(technical)#SGML_comment_oddity
an SGML comment is rendered (in a badly mangled way) on screen when inserted
between REF and /REF. I provide a simplified example of this at
http://en.wikipedia.org/wiki/User%3AHoary/Minima

(This is my first ever bug report here; apologies if I'm filing it in the wrong way.)


Version: unspecified
Severity: normal
Platform: Other
URL: http://en.wikipedia.org/wiki/User%3AHoary/Minima

Details

Reference
bz5384

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:10 PM
bzimport added a project: Cite.
bzimport set Reference to bz5384.
  • Bug 5635 has been marked as a duplicate of this bug. ***
  • Bug 5700 has been marked as a duplicate of this bug. ***

wallykramer wrote:

Encountered this situation by using http://teamgamer.org/cgi-bin/wikirefs.pl
(aka "Ref converter") where the citation note had the html comment <b>&lt;!--
expand note later --></b> in it. It appears the converter did the right--at
least expected--thing and moved the comment (along with the rest of the note)
into the &lt;ref> ... &lt/ref> citation. Upon expansion and resolution,
&lt;references /> has
"UNIQ5e18725c71ac5e7e-HTMLCommentStrip140f36514a165f5700000001" where the
comment was.

Improvements to extension stripping that I'm working on fix
this. Should be committed soon.