webhelp: wrong order of script and meta tags

<oXygen/> general issues.
Posts: 30
Joined: Tue Jun 02, 2015 2:01 pm

webhelp: wrong order of script and meta tags

Post by Tristan » Tue Jun 02, 2015 2:37 pm

In Oxygen 17 the following was added to dita-ot\plugins\com.oxygenxml.webhelp\xsl\createMainFiles.xsl

Code: Select all

<script type="text/javascript">
var withFrames = true;
var webhelpSearchRanking = <xsl:value-of select="$WEBHELP_SEARCH_RANKING"/>;
Similar code snippets have been added for both the index.html & index_frames.html.

However by adding this in front of the meta tag:

Code: Select all

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
This meta information is no longer interpreted by IE and therefore on an intranet, the webhelp output is no longer rendered according the latest standard (sticks to IE=7).

Please move the scripts for the respective index files behind the meta tags to fix this issue.

Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: webhelp: wrong order of script and meta tags

Post by sorin_ristache » Tue Jun 02, 2015 3:25 pm

Hi Tristan,

You are right, the meta tag with X-UA-Compatible should come before any JavaScript or CSS code. We will correct that in the next maintenance build of of Oxygen 17.0.

Thank you for letting us know.

<oXygen/> XML Editor Support

Post Reply