Permalink
Browse files

Bug 773354 - "name" attribute of image map not urlencoded, not workin…

…g in Chrome
  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Oct 22, 2016
1 parent d6ec94c commit 6300c03b6201ca7981388a6d3c01486f8a8adba0
Showing with 2 additions and 3 deletions.
  1. +1 −1 src/context.cpp
  2. +1 −2 src/htmlgen.cpp
View
@@ -1989,7 +1989,7 @@ class ClassContext::Private : public DefinitionContext<ClassContext::Private>
t << "<img src=\"";
t << relPathAsString() << m_classDef->getOutputFileBase();
t << ".png\" usemap=\"#" << convertToId(name) << "_map\" alt=\"\"/>" << endl;
t << "<map id=\"" << convertToId(name) << "_map\" name=\"" << name << "_map\">" << endl;
t << "<map id=\"" << convertToId(name) << "_map\" name=\"" << convertToId(name) << "_map\">" << endl;
d.writeImage(t,g_globals.outputDir,
relPathAsString(),
m_classDef->getOutputFileBase());
View
@@ -1359,8 +1359,7 @@ void HtmlGenerator::endClassDiagram(const ClassDiagram &d,
t << relPath << fileName << ".png\" usemap=\"#" << convertToId(name);
t << "_map\" alt=\"\"/>" << endl;
t << " <map id=\"" << convertToId(name);
t << "_map\" name=\"";
docify(name);
t << "_map\" name=\"" << convertToId(name);
t << "_map\">" << endl;
d.writeImage(t,dir,relPath,fileName);

0 comments on commit 6300c03

Please sign in to comment.