Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39866

SVG images not shown with Internet Explorer using HTML Publisher Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • htmlpublisher-plugin
    • 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.

            r2b2_nz Richard Bywater
            jherb Joachim Herb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: