[whatwg] Exposing spelling/grammar suggestions in contentEditable

Is there room for discussion of an API to expose misspelled ranges of 
text in contentEditable?

This would be building upon the spelling and grammar checking section:
http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#spelling-and-grammar-checking

A method for a contentEditable section, along the lines of 
getSpellcheckRanges() would allow for content editors,
to stylize and provide further UI controls around spell checking. Such 
an API could be used to warn the user that
they have possibly misspelled text, in a similar way to how word 
processors convey the information.

It may not be feasible at the moment, but it could be worth some 
discussion. A Range list seems appropriate, though
it would need something along the lines of getSuggestedSpelling() on 
each range.


-Charles

Received on Saturday, 27 November 2010 12:19:59 UTC