Good idea for a plugin. Dealing with accuracy issues will be a challenge.
There is no universal catch for the textarea path that will process the string (except for line breaks in spaces) or using word-wrap.

IE has created a gap with . , () {} ? . , () {} ? but not with / * = +

In this example, textarea seems to have a "special" feel like td
source share