Disable spell-checking on HTML textfields – Dev

The best answers to the question “Disable spell-checking on HTML textfields” in the category Dev.

QUESTION:

Can I somehow disable spell-checking on HTML textfields (as seen in e.g. Safari)?

ANSWER:

Yes, use spellcheck="false", as defined by HTML5, for example:

<textarea spellcheck="false">
    ...
</textarea>

ANSWER:

Update: As suggested by a commenter (additional credit to How can I disable the spell checker on text inputs on the iPhone), use this to handle all desktop and mobile browsers.

<tag autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>

Original answer: Javascript cannot override user settings, so unless you use another mechanism other than textfields, this is not (or shouldn’t be) possible.

ANSWER:

An IFrame WILL “trigger” the spell checker (if it has content-editable set to true) just as a textfield, at least in Chrome.

ANSWER:

For Grammarly you can use:

<textarea data-gramm="false" />