From 2a5bc0c767092c11d5edbb1d5d3dbc2a4d5468e8 Mon Sep 17 00:00:00 2001
From: Sean McArthur <sean.monstar@gmail.com>
Date: Mon, 23 Jul 2012 15:09:23 -0700
Subject: [PATCH] add spellcheck="false" to email fields

fixes #2116
---
 resources/static/dialog/views/add_email.ejs    | 2 +-
 resources/static/dialog/views/authenticate.ejs | 2 +-
 resources/views/forgot.ejs                     | 2 +-
 resources/views/signin.ejs                     | 2 +-
 resources/views/signup.ejs                     | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/resources/static/dialog/views/add_email.ejs b/resources/static/dialog/views/add_email.ejs
index c702bd5ac..b9c34d1c9 100644
--- a/resources/static/dialog/views/add_email.ejs
+++ b/resources/static/dialog/views/add_email.ejs
@@ -7,7 +7,7 @@
       <ul class="inputs">
           <li>
               <label for="newEmail"><%= gettext('Add another email address to your Persona password.') %></label>
-              <input id="newEmail" name="newEmail" type="email" autocapitalize="off" autocorrect="off" maxlength="254" <% if (typeof email !== "undefined") { %> value="<%= email %>" <% } %> placeholder="<%= gettext("email address") %>"/>
+              <input id="newEmail" name="newEmail" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" maxlength="254" <% if (typeof email !== "undefined") { %> value="<%= email %>" <% } %> placeholder="<%= gettext("email address") %>"/>
 
               <div id="email_format" class="tooltip" for="newEmail">
                 <%= gettext('This field must be an email address.') %>
diff --git a/resources/static/dialog/views/authenticate.ejs b/resources/static/dialog/views/authenticate.ejs
index b56209b7a..f3c677f0c 100644
--- a/resources/static/dialog/views/authenticate.ejs
+++ b/resources/static/dialog/views/authenticate.ejs
@@ -12,7 +12,7 @@
 
           <li>
               <label for="email"><%= gettext('To sign in with Persona, please enter your email address.') %></label>
-              <input id="email" type="email" autocapitalize="off" autocorrect="off" value="<%= email %>" maxlength="254" placeholder="<%= gettext('enter email address') %>"/>
+              <input id="email" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" value="<%= email %>" maxlength="254" placeholder="<%= gettext('enter email address') %>"/>
 
               <div id="email_format" class="tooltip" for="email">
                 <%= gettext('This field must be an email address.') %>
diff --git a/resources/views/forgot.ejs b/resources/views/forgot.ejs
index 31ce339a4..7e76d76e2 100644
--- a/resources/views/forgot.ejs
+++ b/resources/views/forgot.ejs
@@ -24,7 +24,7 @@
             <ul class="inputs forminputs">
                 <li>
                     <label for="email"><%- gettext('Email Address') %></label>
-                    <input id="email" autofocus required placeholder="<%- gettext('Your Email') %>" type="email" autocapitalize="off" autocorrect="off" maxlength="254" />
+                    <input id="email" autofocus required placeholder="<%- gettext('Your Email') %>" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" maxlength="254" />
 
                     <div id="email_format" class="tooltip" for="email">
                       <%- gettext('This field must be an email address.') %>
diff --git a/resources/views/signin.ejs b/resources/views/signin.ejs
index 08e07fc8c..8156da2a4 100644
--- a/resources/views/signin.ejs
+++ b/resources/views/signin.ejs
@@ -19,7 +19,7 @@
             <ul class="inputs">
                 <li>
                     <label for="email"><%- gettext('Email Address') %></label>
-                    <input id="email" autofocus placeholder="<%- gettext('Your Email') %>" type="email" autocapitalize="off" autocorrect="off" tabindex="1" maxlength="254" />
+                    <input id="email" autofocus placeholder="<%- gettext('Your Email') %>" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" tabindex="1" maxlength="254" />
 
                     <div id="email_format" class="tooltip" for="email">
                       <%- gettext('This field must be an email address.') %>
diff --git a/resources/views/signup.ejs b/resources/views/signup.ejs
index 364e1ad40..c40ba279c 100644
--- a/resources/views/signup.ejs
+++ b/resources/views/signup.ejs
@@ -31,7 +31,7 @@
             <ul class="inputs forminputs">
                 <li>
                     <label for="email"><%- gettext('Email Address') %></label>
-                    <input id="email" autofocus placeholder="<%- gettext('Your Email') %>" type="email" autocapitalize="off" autocorrect="off" maxlength="254" />
+                    <input id="email" autofocus placeholder="<%- gettext('Your Email') %>" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" maxlength="254" />
 
                     <div id="email_format" class="tooltip" for="email">
                       <%- gettext('This field must be an email address.') %>
-- 
GitLab