Consider adding `autocorrect="off" spellcheck="false"` to inputs
See original GitHub issueA user is entering their email address on an email input implemented without type="email"
.
The standard input does not have autocorrect="off"
so their email address is autocorrected.
Should we consider autocorrect="off" spellcheck="false"
on inputs?
If type="email"
is applied does this remove autocorrect?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Disable spell-checking on HTML textfields - Stack Overflow
Yes, use spellcheck="false" , as defined by HTML5, for example:
Read more >spellcheck - HTML: HyperText Markup Language | MDN
The spellcheck global attribute is an enumerated attribute that defines whether the element may be checked for spelling errors.
Read more >How to Disable Spell Checking from Input Box and Textarea
Answer: Set the spellcheck attribute to false ... Usually, when you enter the grammatically incorrect words inside <input> or <textarea> fileds in an...
Read more >How to disable spell checking from Input Box and Textarea in ...
To disable spellcheck in an HTML form the spellcheck attribute is set to “false”. Below is the sample HTML program with disabled spellcheck....
Read more >How To Turn Off Spellcheck Globally for All Input Boxes in a ...
If an element's spellcheck attribute is false, the browser will not spell-check its content. The default value of the spellcheck is true.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This definitely seems like it’d be beneficial on text inputs asking for things like reference or document numbers, where spelling and autocorrect behaviours are not generally going to be helpful (I guess unless you have to enter the same reference number a lot and the browser has learnt it as part of its dictionary)
I don’t know about defaulting, but it would be great to document some of this somewhere - attributes services should consider.
My general default is to disable spellcheck by default for all inputs, but then enable for inputs accepting sentence-like answers.