Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable autocorrect in Safari text input

Tags:

html

macos

safari

I'm using the autocorrect "off", etc. in input boxes on my site. However, Safari on Mac OS X still auto corrects text input.

This is what I have:

<input autocomplete="off" autocorrect="off" autocapitalize="off" type="text" name="url" placeholder="Enter a web address">

But when I test it on Safari version 9 (Mac OS X v10.11 (El Capitan)), it is still autocorrecting the text.

Is there a more robust answer? Is the new version of Safari overwriting it?

like image 869
The Sumo Avatar asked Feb 19 '16 20:02

The Sumo


People also ask

How do I turn off autocorrect in TextEdit Mac?

Disabling Autocorrect in TextEdit for Mac OS X Open the TextEdit app with any document. Pull down “Edit” and go to “Spelling and Grammar”, selecting “Check Spelling Automatically” to uncheck it.

How do I turn off text autocorrect?

You can do this by tapping the dots to the keyboard's right. Once you're in Settings, tap on the Text correction option at the top. Swipe down a little to the Corrections section and toggle off the Auto-correction option. That's it; that's all you need to do to turn off the feature on Gboard.


1 Answers

You need to add spellcheck="false" to your input.

<input autocomplete="off" autocorrect="off" autocapitalize="off" type="text" name="url" placeholder="Enter a web address" spellcheck="false">

Fiddle

like image 69
Hunter Turner Avatar answered Oct 03 '22 20:10

Hunter Turner