Merge pull request #1251 from processing/html-lang

Adds lang="en" to all `<html>` instances
This commit is contained in:
Cassie Tarakajian 2020-01-28 17:30:22 -05:00 committed by GitHub
commit dc9e8cbdb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ function draw() {
const defaultHTML =
`<!DOCTYPE html>
<html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/addons/p5.sound.min.js"></script>

View file

@ -19,7 +19,7 @@ const clientSecret = process.env.GITHUB_SECRET;
const defaultHTML =
`<!DOCTYPE html>
<html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.dom.min.js"></script>

View file

@ -9,7 +9,7 @@ import Project from '../models/project';
const defaultHTML =
`<!DOCTYPE html>
<html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/addons/p5.sound.min.js"></script>

View file

@ -127,7 +127,7 @@ export function get404Sketch(callback) {
});
} else {
callback(insertErrorMessage(`<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
</head>

View file

@ -2,7 +2,7 @@ export function renderIndex() {
const assetsManifest = process.env.webpackAssets && JSON.parse(process.env.webpackAssets);
return `
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">