From bb83193f68f38b05f5cec98a1c12695fabaf36e7 Mon Sep 17 00:00:00 2001
From: Jesse Sturgis <jesse.sturgis@wwu.edu>
Date: Sun, 10 May 2015 13:32:19 -0700
Subject: [PATCH] Pass W3C validation with these changes

---
 core/modules/user/src/Plugin/Block/UserLoginBlock.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/modules/user/src/Plugin/Block/UserLoginBlock.php b/core/modules/user/src/Plugin/Block/UserLoginBlock.php
index 564870e..519204d 100644
--- a/core/modules/user/src/Plugin/Block/UserLoginBlock.php
+++ b/core/modules/user/src/Plugin/Block/UserLoginBlock.php
@@ -89,6 +89,8 @@ protected function blockAccess(AccountInterface $account) {
    */
   public function build() {
     $form = \Drupal::formBuilder()->getForm('Drupal\user\Form\UserLoginForm');
+    unset($form['name']['#attributes']['autocapitalize']);
+    unset($form['name']['#attributes']['autocorrect']);
     unset($form['name']['#attributes']['autofocus']);
     unset($form['name']['#description']);
     unset($form['pass']['#description']);
-- 
1.9.5 (Apple Git-50.3)

