From d99186949813d1ac142c4927ffeab543aeef6868 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Wed, 2 Nov 2016 11:01:18 +0100 Subject: [PATCH] a11y: Add HTML lang attribute and utf8 encoding meta tag See: https://dequeuniversity.com/rules/axe/2.1/html-has-lang --- app/views/layouts/application.html.haml | 3 +-- public/404.html | 3 ++- public/422.html | 3 ++- public/500.html | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 4f4f2add98..89c7b14c47 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -1,7 +1,6 @@ !!! 5 -%html +%html{:lang => 'en'} %head - %meta{:content => 'text/html; charset=UTF-8', 'http-equiv' => 'Content-Type'}/ %meta{:charset => 'utf-8'}/ %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/ %meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge'}/ diff --git a/public/404.html b/public/404.html index b612547fc2..514a935e23 100644 --- a/public/404.html +++ b/public/404.html @@ -1,6 +1,7 @@ - + + The page you were looking for doesn't exist (404)