I developed XPages application. When loading the page on IE, the outputed html tag is the following.
When loading the page with FQDN or IP Address of the host part,
<HTML lang=en>
When loading the page with the host name(this is defined in hosts file) of the host part,
<html class=" lotusui_ie lotusui_ie7" lang="en">
As a result, the layout is broken in the latter case. I'd like to expect the former tag is outputed in any cases.
Then, I used http-equiv="X-UA-Compatible" but does not work. What causes this issue?
How we set X-UA-Compatible:
<xp:this.beforeRenderResponse><![CDATA[#{javascript:
try {
var response = facesContext.getExternalContext().getResponse();
response.setHeader("X-UA-Compatible", "IE=10");
} catch (e) {
dprint("IE emulation: " + e);
}}]]></xp:this.beforeRenderResponse>