rehamaltamimi / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

html output is invalid for some references with template interaction #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I'm having trouble creating a test case, but you can see the problem if you
write code to render the wiki markup for the enwiki page "Monarchism"
(http://en.wikipedia.org/wiki/Monarchism). Line 31 of the output is:

<li class="toclevel-1"><a
href="#Monarchist_groups_past_and_presentFor_a_.E2.80.9CDirectory_of_Monarchist_
Organizations.2C.E2.80.9D_see_Olga_S._Opfell.2C_Royalty_Who_Waits:_The_21_Heads_
of_Formerly_Regnant_Houses_of_Europe_(Jefferson:_McFarland_.26_Company.2C_Inc..2
C_Publishers.2C_2001).2C_213-216.">Monarchist
groups past and presentFor a “Directory of Monarchist Organizations,” see
Olga S. Opfell, Royalty Who Waits: The 21 Heads of Formerly Regnant Houses
of Europe (Jefferson: McFarland & Company, Inc., Publishers, 2001),
213-216.</a>

This is part of the "Contents" section, which appears to be rendered as
part of a template.

What is the expected output? What do you see instead?

The body of the 'a' element includes an unencoded ampersand, making the
html invalid. The '&' should be encoded as &amp; or &#38;

What version of the product are you using? On what operating system?

svn 525

Original issue reported on code.google.com by michael....@gmail.com on 3 Nov 2009 at 7:57

GoogleCodeExporter commented 8 years ago
I still can't figure out a good test case, but this patch works for Monarchism 
and
Harare.

Original comment by michael....@gmail.com on 3 Nov 2009 at 10:01

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 4 Nov 2009 at 6:53

GoogleCodeExporter commented 8 years ago
Changed with:
http://code.google.com/p/gwtwiki/source/detail?r=526

Thanks for the patches :-)

Original comment by axelclk@gmail.com on 4 Nov 2009 at 6:55

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 5 Jan 2010 at 7:24