Skip to content

Commit

Permalink
Remove X-UA-Compatible meta tag
Browse files Browse the repository at this point in the history
This meta tag ensured that older versions of Internet Explorer (IE8 onwards) used the most recent renderer and rendering rules available to
them.

IE11 does not require this meta tag. It deprecates the X-UA-Compatible meta tag and now uses the most
recent renderer automatically if the doctype is `<!DOCTYPE html>`.

Both the EdgeHTML and Chromium versions of Edge ignore the meta tag entirely.

https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/dev-guides/bg182625(v=vs.85)#document-mode-changes
  • Loading branch information
querkmachine committed Nov 6, 2023
1 parent 65de7df commit 25d3de0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/govuk/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<title{% if pageTitleLang %} lang="{{ pageTitleLang }}"{% endif %}>{% block pageTitle %}GOV.UK - The best place to find government services and information{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="{{ themeColor | default("#0b0c0c", true) }}"> {# Hardcoded value of $govuk-black #}
{# Ensure that older IE versions always render with the correct rendering engine #}
<meta http-equiv="X-UA-Compatible" content="IE=edge">

{% block headIcons %}
<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="{{ assetPath | default("/assets", true) }}/images/favicon.ico" type="image/x-icon">
Expand Down

0 comments on commit 25d3de0

Please sign in to comment.