If you have extensions like Grammarly and languagetools enabled in your browser. and you type in some input-box on any site? Now we know that is possible to know the text inside input html element. and suppose with some api, we are able to know which word is spelled wrongly. Now how are they able to draw a red line beneath that word exactly as we know that we can't apply css property to the text inside the input html element?
Asked
Active
Viewed 108 times
1 Answers
0
I'm not sure, but they might be using getClientRects()
to find the coordinates and then placing the lines as an absolute position element.

Tomas Gonzalez
- 188
- 2
- 8