htmlcssinputtextareaspell-checking

How does one disable spellcheck on input type=text?


I'd like to disable the spellcheck on my textfields <input type="text"> so as not to have any ugly red squigglies.

I understand others have asked this same question, but they always make the answer of putting spellcheck=false as accepted. That is not correct. That only works on a textarea, not input.

I'd like it to work in chrome at least.


Solution

  • From http://blog.whatwg.org/the-road-to-html-5-spellchecking#compatibility:

    Google Chrome offers as-you-type spellcheck on <textarea> elements but not <input type=text> elements. It ignores the spellcheck attribute entirely. It does not offer the end user the option to change the default behavior or manually check individual fields.

    So, it ends here.


    Update: since Chrome 13 (released August 2011, 3 months after this answer), it's also supported on <input> elements.