Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: Simplify <meta> element and charset attribute
See https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Obsolete_things_to_avoid

BREAKING CHANGE: The default meta utf-8 declaration was changed to <meta charset="utf-8"/>
  • Loading branch information
jantimon committed Jun 3, 2018
1 parent b46bf67 commit 55313be
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -86,7 +86,7 @@ This will generate a file `dist/index.html` containing the following
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>Webpack App</title>
</head>
<body>
Expand Down Expand Up @@ -189,7 +189,7 @@ plugins: [
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta charset="utf-8"/>
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion default_index.ejs
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/default/dist/webpack-4/index.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>Webpack App</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/favicon/dist/webpack-4/favicon.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>HtmlWebpackPlugin example</title>
<link rel="shortcut icon" href="favicon.ico"><link href="styles.css" rel="stylesheet"></head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/inline/dist/webpack-4/index.html
@@ -1,4 +1,4 @@
<!DOCTYPE html><html><head><meta http-equiv="Content-type" content="text/html; charset=utf-8"><title>Jade demo</title></head><body><style>body {
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Jade demo</title></head><body><style>body {
background: snow;
}</style><script>/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down
2 changes: 1 addition & 1 deletion examples/inline/template.jade
@@ -1,7 +1,7 @@
doctype html
html
head
meta(http-equiv="Content-type" content="text/html; charset=utf-8")
meta(charset="utf-8")
title #{htmlWebpackPlugin.options.title}
body
each cssFile in htmlWebpackPlugin.files.css
Expand Down
2 changes: 1 addition & 1 deletion examples/template-parameters/dist/webpack-4/index.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>bar</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/template-parameters/index.ejs
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title><%= foo %></title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/invalid.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta charset="utf-8"/>
<title>Test</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/legacy.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta charset="utf-8"/>
<title>Test</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/template.jade
@@ -1,7 +1,7 @@
doctype html
html
head
meta(http-equiv="Content-type" content="text/html; charset=utf-8")
meta(charset="utf-8")
title Demo
body
p Some unique text
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/test.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta charset="utf-8"/>
<title>Test</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/webpackconfig.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<meta charset="utf-8"/>
<title>Test</title>
</head>
<body>
Expand Down

0 comments on commit 55313be

Please sign in to comment.