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 880fd4f commit 30fcc35
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/examples/webpack/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#0b0c0c">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="stylesheet" href="/stylesheets/app.min.css">
</head>
Expand Down
2 changes: 0 additions & 2 deletions packages/govuk-frontend/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 30fcc35

Please sign in to comment.