简体   繁体   English

为什么拼写检查输入在IE11上不起作用?

[英]Why Spellcheck input does not work on IE11?

Spellcheck work on IE11 like that: Spellcheck在IE11上的工作方式如下:

<input name="test"   spellcheck="true" ></input>

But if i add "pattern", Spellcheck does not work anymore: 但如果我添加“模式”,拼写检查将不再起作用:

<input name="test"   spellcheck="true"  pattern=".*"></input>

Has anyone seen a similar problem before? 以前有没有人见过类似的问题?

I made a test with IE 11 and find that spell check is not working in combination with pattern. 我使用IE 11进行了测试,发现拼写检查不能与模式结合使用。

I try to search for the solution but did not got anything. 我试图寻找解决方案,但没有得到任何东西。

I also tested with other browsers like Edge(Edge HTML), Chrome and new Edge(Chromium). 我还测试了其他浏览器,如Edge(Edge HTML),Chrome和新Edge(Chromium)。 In that I had find that it is working in Chrome and new Edge(Chromium) and has similar issue with MS Edge(Edge HTML). 我发现它在Chrome和新的Edge(Chromium)中工作,并且与MS Edge(Edge HTML)有类似的问题。 I had already provided a feedback to Microsoft regarding this issue. 我已就此问题向Microsoft提供了反馈。

As IE will not receive any feature updates so we can expect that this issue will remain in IE. 由于IE不会收到任何功能更新,因此我们可以预期此问题将保留在IE中。

As a work around for IE, you can keep the spell check there but try to match the pattern using JavaScript may help to avoid the issue. 作为IE的解决方法,你可以在那里保持拼写检查,但尝试使用JavaScript匹配模式可能有助于避免这个问题。

Reference: 参考:

Regular Expressions 常用表达

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM