Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-75801

x-ua-compatible directive not respected in IE9

    Details

      Description

      Issue
      x-ua-compatible directive not respected in IE9 due to wrong position in head tag

      Steps to reproduce

      1. Start a clean bundle
      2. Open an IE9 and access liferay
      3. Note that the compatibility icon is displayed and we can switch to compatibility mode
        Not respecting the IE=Edge directive
      4. Check source code's <head> tag and confirm that x-ua-compatible position is after some css is loaded
      5. In webapps/ROOT/html/common/themes/top_head.jsp, move the loading of css after the top_meta tags.
        <%@ include file="/html/common/themes/init.jsp" %>
        <%@ include file="/html/common/themes/top_meta.jspf" %>
        <%@ include file="/html/common/themes/top_meta-ext.jsp" %>
        <liferay-util:dynamic-include key="/html/common/themes/top_head.jsp#pre" />
      1. Remove Tomcat's temp/work to clear cache and restart Liferay
      2. Access liferay again in IE9
      3. Note that the compatibility icon is not displayed because x-ua-compatible is properly respected

      Actual results
      IE=Edge directive not respected and compatibility icon is displayed

      Expected results
      IE=Edge directive respected and compatibility icon is NOT displayed

      Reference
      https://msdn.microsoft.com/en-us/library/jj676915%28v=vs.85%29.aspx

      The X-UA-Compatible header isn't case sensitive; however, it must appear in the header of the webpage (the HEAD section) before all other elements except for the title element and other meta elements.

        Attachments

          Activity

            People

            • Assignee:
              hong.zhao Hong Zhao
              Reporter:
              hai.yu Hai Yu
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 10 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP33
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.X
                Master