webhelp: wrong order of script and meta tags

<oXygen/> general issues.
Tristan
Posts: 30

webhelp: wrong order of script and meta tags

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"/>;
</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.
sorin_ristache
Posts: 4144

Re: webhelp: wrong order of script and meta tags

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.
Regards,
Sorin

<oXygen/> XML Editor Support

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 4 guests