title: Turn off predictive text for password field on websites
body: <p>I have an Android application that displays a page in a webview to handle a username/password login. I have found that with certain keyboards (like the stock keyboard on Samsung Jellybean devices), the predictive text is changing what the user types in the password field.</p>
  <p>For example, if the password is &quot;ab!d&quot;, the predictive text tries to help by automatically entering a space after the punctuation, making it &quot;ab! d&quot; and causes an incorrect password to be entered. The only reason I know that predictive text is behind this is that this problem does not occur when predictive text is turned OFF through the keyboard menu settings.</p>
  <p>Is there a way to disable the predictive text when typing in the web form? I already have the input type set to &quot;password&quot; to mask the entry. This is not an Android TextView (it is an HTML input), so I don't have the platform level controls on the input, and as far as I know, Android does not understand the &quot;autocorrect=off&quot; setting that some sites use to tackle this problem on iOS devices.</p>
  <p>I have noticed that this problem does not seem to happen on other websites like mail.google.com. The same keyboard, regardless of settings, will politely leave the user's input alone on the password field there. Looking through the HTML source on that page did not reveal anything special on the password field, only the same input type that I already use.</p>
  <p>Have any of you run into this problem, or can you think of possible solutions? Is there something that mail.google.com or other sites do that I am missing? Any help will be greatly appreciated.</p>
  <p>Sample of the HTML is below:</p>
  <pre><code>&lt;div data-role=&quot;fieldcontain&quot; class=&quot;ui-hide-label&quot;  &gt;
  &lt;label for=&quot;USER&quot;&gt;ID&lt;/label&gt;
  &lt;input autocomplete=&quot;off&quot; autocorrect=&quot;off&quot; autocapitalize=&quot;off&quot; spellcheck=&quot;false&quot;  type=&quot;text&quot; name=&quot;USER&quot; id=&quot;USER&quot; value=&quot;&quot; maxlength=&quot;50&quot; placeholder=&quot;${userId_text}&quot; data-theme=&quot;c&quot;/&gt;
  &lt;/div&gt;
  &lt;div data-role=&quot;fieldcontain&quot; class=&quot;ui-hide-label&quot;&gt;
  &lt;label for=&quot;password&quot;&gt;Password&lt;/label&gt;
  &lt;input autocomplete=&quot;off&quot; autocorrect=&quot;off&quot; autocapitalize=&quot;off&quot; spellcheck=&quot;false&quot;  type=&quot;password&quot; name=&quot;password&quot; id=&quot;password&quot; value=&quot;&quot; maxlength=&quot;50&quot; placeholder=&quot;Password&quot; data-theme=&quot;c&quot;/&gt;
  &lt;/div&gt;
  </code></pre>
  <p><img src="https://i.stack.imgur.com/MJSz7.png" alt="enter image description here" /></p>