Page 1 of 1

webhelp: wrong order of script and meta tags

Posted: Tue Jun 02, 2015 2:37 pm
by Tristan
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"/>;
</script>
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.

Re: webhelp: wrong order of script and meta tags

Posted: Tue Jun 02, 2015 3:25 pm
by sorin_ristache
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.