[JIRA] (JENKINS-39866) SVG images not shown with Internet Explorer using HTML Publisher Plugin

7 views
Skip to first unread message

joachim.herb@gmx.de (JIRA)

unread,
Nov 18, 2016, 8:12:01 AM11/18/16
to jenkinsc...@googlegroups.com
Joachim Herb created an issue
 
Jenkins / Bug JENKINS-39866
SVG images not shown with Internet Explorer using HTML Publisher Plugin
Issue Type: Bug Bug
Assignee: mcrooney
Components: htmlpublisher-plugin
Created: 2016/Nov/18 1:11 PM
Environment: Jenkins 2.31
HTML Publisher Plugin 1.11
Internet Explorer
Priority: Minor Minor
Reporter: Joachim Herb

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

mcrooney@java.net (JIRA)

unread,
Nov 19, 2016, 12:06:03 PM11/19/16
to jenkinsc...@googlegroups.com
mcrooney commented on Bug JENKINS-39866
 
Re: SVG images not shown with Internet Explorer using HTML Publisher 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?

joachim.herb@gmx.de (JIRA)

unread,
Nov 21, 2016, 9:25:01 AM11/21/16
to jenkinsc...@googlegroups.com

joachim.herb@gmx.de (JIRA)

unread,
Nov 21, 2016, 9:42:02 AM11/21/16
to jenkinsc...@googlegroups.com
Joachim Herb edited a comment on Bug JENKINS-39866
Of course, a template directory would be also OK. Perhaps this could be a starting point: https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin


Actually I just found out, that to "normal" Jenkins pages I can modify the header with this userContent/title.js Javascript script:

{code:javascript}
metaContent = document.createElement("meta");
metaContent.setAttribute("content", "IE=edge");
metaContent.setAttribute("http-equiv", "X-UA-Compatible");

document.head.appendChild(metaContent);
{code}

Unfortunately, the HTML Publisher Plugin generated HTML pages are not modified by the Simple Theme Plugin.

joachim.herb@gmx.de (JIRA)

unread,
Nov 21, 2016, 9:42:02 AM11/21/16
to jenkinsc...@googlegroups.com
Joachim Herb edited a comment on Bug JENKINS-39866
Of course, a template directory would be also OK. Perhaps this could be a starting point: https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin

Actually I just found out, that to for "normal" Jenkins pages I can modify the header with this userContent/title.js Javascript script:


{code:javascript}
metaContent = document.createElement("meta");
metaContent.setAttribute("content", "IE=edge");
metaContent.setAttribute("http-equiv", "X-UA-Compatible");

document.head.appendChild(metaContent);
{code}

Unfortunately, the HTML Publisher Plugin generated HTML pages are not modified by the Simple Theme Plugin.

joachim.herb@gmx.de (JIRA)

unread,
Nov 21, 2016, 10:21:02 AM11/21/16
to jenkinsc...@googlegroups.com
Joachim Herb edited a comment on Bug JENKINS-39866
Of course, a template directory would be also OK. Perhaps this could be a starting point: https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin

Actually I just found out, that for "normal" Jenkins pages I can modify the header with this userContent/title.js Javascript script:


{code:javascript}
metaContent = document.createElement("meta");
metaContent.setAttribute("content", "IE=edge");
metaContent.setAttribute("http-equiv", "X-UA-Compatible");

document.head.appendChild(metaContent);
{code}

Unfortunately, the HTML Publisher Plugin generated HTML pages are not modified by the Simple Theme Plugin.

Just another remark: It is probably to too late to modify the header with Javascript, after the page was already loaded?!? At least, it does not help to add the meta tag to the header with the developer tools of Internet Explorer.

joachim.herb@gmx.de (JIRA)

unread,
Nov 21, 2016, 10:21:02 AM11/21/16
to jenkinsc...@googlegroups.com
Joachim Herb edited a comment on Bug JENKINS-39866
Of course, a template directory would be also OK. Perhaps this could be a starting point: https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin

Actually I just found out, that for "normal" Jenkins pages I can modify the header with this userContent/title.js Javascript script:

{code:javascript}
metaContent = document.createElement("meta");
metaContent.setAttribute("content", "IE=edge");
metaContent.setAttribute("http-equiv", "X-UA-Compatible");

document.head.appendChild(metaContent);
{code}

Unfortunately, the HTML Publisher Plugin generated HTML pages are not modified by the Simple Theme Plugin.


Just another remark: It is probably to late to modify the header with Javascript, after the page was already loaded?!? At least, it does not help to add the meta tag to the header with the developer tools of Internet Explorer.

joachim.herb@gmx.de (JIRA)

unread,
Nov 21, 2016, 10:22:02 AM11/21/16
to jenkinsc...@googlegroups.com
Joachim Herb edited a comment on Bug JENKINS-39866
Of course, a template directory would be also OK. Perhaps this could be a starting point: https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin

Actually I just found out, that for "normal" Jenkins pages I can modify the header with this userContent/title.js Javascript script:

{code:javascript}
metaContent = document.createElement("meta");
metaContent.setAttribute("content", "IE=edge");
metaContent.setAttribute("http-equiv", "X-UA-Compatible");

document.head.appendChild(metaContent);
{code}

Unfortunately, the HTML Publisher Plugin generated HTML pages are not modified by the Simple Theme Plugin.

Just another remark: It is probably too late to modify the header with using Javascript, after the page was already loaded?!? At least, it does not help to add the meta tag to the header with the developer tools of Internet Explorer.

richard@byh2o.com (JIRA)

unread,
Sep 3, 2018, 2:46:12 AM9/3/18
to jenkinsc...@googlegroups.com
Richard Bywater resolved as Incomplete
 

Hi - this issue has been around and not touched for a year or more. In an effort to try and focus on issues which are still present, I am resolving these issues for now.

If you feel that the issue is still present, please feel free to re-open / comment. I'll be closing off any issues that haven't had any re-opening or comments by the end of the month.

Thanks for reporting these issues - hopefully you are still using HTML Publisher and its working for you but, if not, let me know so that I can focus on issues that are causing you problems today

Change By: Richard Bywater
Status: Open Resolved
Assignee: mcrooney Richard Bywater
Resolution: Incomplete
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

richard@bywater.nz (JIRA)

unread,
Sep 13, 2019, 3:06:21 AM9/13/19
to jenkinsc...@googlegroups.com
Richard Bywater closed an issue as Incomplete
Change By: Richard Bywater
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages