简体   繁体   中英

Why Spellcheck input does not work on IE11?

Spellcheck work on IE11 like that:

<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.

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). In that I had find that it is working in Chrome and new Edge(Chromium) and has similar issue with MS Edge(Edge HTML). I had already provided a feedback to Microsoft regarding this issue.

As IE will not receive any feature updates so we can expect that this issue will remain in 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.

Reference:

Regular Expressions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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