Skip to content

Commit

Permalink
feat: Simplify <meta> element and charset attribute
Browse files Browse the repository at this point in the history
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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.