htmlmacossafari

Disable autocorrect in Safari text input


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?


Solution

  • 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