-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login: Internet Explorer 11 triggers compatibility view for "intranet" sites, breaking Cockpit #9269
Comments
Issue discovered in #9243 (comment) |
Supposed fix is typically adding the following meta tag as the very first tag under (with the exception of <title>, which can come before it): <meta http-equiv="X-UA-Compatible" content="IE=Edge"> However, |
A workaround was to use a FQDN instead of just the short hostname. In my case, I just added This means anyone using Windows and IE11 to administer a Linux system with Cockpit must use the full hostname. Short names, even if they're resolved perfectly fine, won't work properly in Internet Explorer. (I think this is yet-another papercut issue that says we should drop all IE support at sometime in the near future.) |
Solutions
Info on how to target Internet ExplorerShow something to just Internet Explorer (I'm pretty sure this excludes Edge, which is a different browser really): <!--[if IE]>
Only IE sees this
<![endif]--> Target IE 10 and lower: <!--[if lt IE 11]>
Versions of IE less than 11 see this.
<![endif]--> Target IE 7 (I believe this includes compatibility mode of IE11): <!--[if IE 7]>
Only IE 7 sees this.
<![endif]--> |
That info on Internet Explorer supporting conditional comments? Out of date. IE10 and IE11 do not support conditional comments anymore — not even in old-IE emulation mode ("compatibility view").
🤷♂️ |
Interestingly enough, CSS feature queries ( However, this doesn't help us with supporting IE11 and nothing lower. It would help us whenever we do decide to drop IE11. |
We "fixed" this by deprecating IE in #9689. People using Internet Explorer should upgrade to Edge or use a standards compliant browser like Firefox or Chrome. |
Internet Explorer 11 on Windows 10, by default, switches to "compatibility view" (aka: IE7+ActiveX rendering) for sites it detects as behind the firewall (what it calls "intranet").
As Cockpit does not work on IE7 (just like most websites at this point in time), It's not even possible to log in to Cockpit. The form does not even appear.
Screenshot of IE7 mode, automatically triggered by default:
Screenshot of the compatibility view settings (click the gear icon, then select "Compatibility View settings"):
The text was updated successfully, but these errors were encountered: