我正在尝试创建一个简单的可编辑字段(用于发布),同时组合拼写检查:
<div contenteditable="contenteditable" spellcheck="spellcheck" lang="en">text</div>
Run Code Online (Sandbox Code Playgroud)
(http://www.wufoo.com/html5/attributes/17-spellcheck.html)
它有效,但在Google Chrome上,拼写检查程序无法检测到该语言.(尽管指定了@lang属性)
Firefox中修复了"bug":https://bugzilla.mozilla.org/show_bug.cgi?id = 338427
但我找不到任何关于谷歌Chrome的实现.有没有办法通知拼写检查器HTML5字段中的预期语言?或许真的在<head>像charset,meta lang等?