-
Bug
-
Resolution: Incomplete
-
Minor
-
None
-
Jenkins 2.31
HTML Publisher Plugin 1.11
Internet Explorer
In pages generated by the HTML Publisher Plugin (version 1.11) embedded SVG images are not shown correctly if opened in Internet Explorer (11). If opened with Firefox, they are displayed.
The reason for this is described at StackOverflow: http://stackoverflow.com/a/27494616
It sounds as though you're not in a modern document mode. Internet Explorer 11 shows the SVG just fine when you're in Standards Mode. Make sure that if you have an x-ua-compatible meta tag, you have it set to Edge, rather than an earlier mode.
<meta http-equiv="X-UA-Compatible" content="IE=edge">
It does not help to add this to the generated HTML file because it is shown as frame within a page generated by the HTML Publisher Plugin. It works, if just the embedded frame is shown.
A possible solution would be to add the line above to the page source code, which is used for the page embedding the actual generated page (i. e. https://github.com/jenkinsci/htmlpublisher-plugin/blob/73fdcc6e0a668d27bc390567f95cc8c9ec445cc1/src/main/resources/htmlpublisher/HtmlPublisher/header.html)
A more general solution would be to allow to modify this file by options given to the plugin.
Makes sense, thanks for the report! Instead of trying to create options for each little thing (doctype, lang, encoding, etc), what do you think about adding an option to specify a location for a custom template or header/footer?