Is it possible to use HTML spellcheck to return a boolean value?

39 views Asked by At

I'm trying to make a spellchecker feature in an web application. I know that html spellchecker is currently functional for input and textareas. I'm trying to spellcheck elements such as paragraphs, spans, etc.

What I have in mind currently retrieving the text in a container, splitting it so that I have all of the words in an array, checking if the words are grammatically correct, using js to create a input node, append each word in the array one at a time, and enable html spellchecker. But that would only work if it returns something.

Is it possible to return something like a boolean using HTML spellcheck?

0

There are 0 answers