Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 25 by michael.blakeley: html output is invalid for some images
with inline quotes
http://code.google.com/p/gwtwiki/issues/detail?id=25
What steps will reproduce the problem?
1. Render wikitext like this to html:
[[Image:William Fettes Douglas - The Alchemist.jpg|thumb|left|\"Renel the
Alchemist\", by Sir William Douglas, 1853]]
What is the expected output? What do you see instead?
The output html should encode the double-quotes in html attributes, but
does not.
What version of the product are you using? On what operating system?
svn rev 524.
Please provide any additional information below.
It's odd, because escaping seems to work in WPImageFilterTest.java
testImage06
([[Image:Henkell-Schlösschen.JPG|thumb|\'\'Henkell-Schlösschen\'\' der
Sektkellerei [[Henkell & Söhnlein KG]]]] Wiesbaden).
Here's a test case, which I believe to be correct. It should go into
WPImageFilterTest.java
public void testImage14() {
assertEquals(
"\n"
+ "<p><a class=\"internal\"
href=\"
http://www.bliki.info/wiki/Image:William_Fettes_Douglas_-_The_Alchemist.jpg\""
+ " title=\""Renel the Alchemist", by Sir
William Douglas, 1853\">"
+ "<img
src=\"
http://www.bliki.info/wiki/William_Fettes_Douglas_-_The_Alchemist.jpg\""
+ " alt=\""Renel the Alchemist", by Sir
William Douglas, 1853\""
+ " title=\""Renel the Alchemist", by Sir
William Douglas, 1853\""
+ " class=\"location-none type-thumb\" />\n"
+ "</a>\n"
+ "<div class=\"thumbcaption\">"Renel the
Alchemist", by Sir William Douglas, 1853"
+ "<a
href=\"
http://www.bliki.info/wiki/William_Fettes_Douglas_-_The_Alchemist.jpg\""
+ " title=\""Renel the Alchemist", by Sir
William Douglas, 1853\">"
+ ""Renel the Alchemist", by Sir William
Douglas, 1853</a></div></p>",
wikiModel
.render("[[Image:William Fettes Douglas - The
Alchemist.jpg|thumb|left|\"Renel the Alchemist\", by Sir William Douglas,
1853]]"));
}
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings