Inline Disabling of Firefox Spellcheck?

跟風遠走 提交于 2019-11-30 10:49:34

Talk about having a big "duh" moment! I found the answer after some trial & error:

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

The "spellcheck" attribute is currently an extra feature available only in Firefox, but it is being considered for inclusion in HTML5.

add the attribute using JQuery $('.textarea_className').attr('spellcheck',false);

This will allow you to return a valid XHTML mark up. =)

The downside of this is that the W3 strict validator gives - Attribute "spellcheck" is not a valid attribute. Bad news for those of us with OCD that love to see 0 errors in validating our sites.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!