[webkit-dev] Newline translation issue with textareas

Darin Adler darin at apple.com
Mon Jun 20 13:55:33 PDT 2005


On Jun 20, 2005, at 1:25 PM, Kevin Ballard wrote:

> In terms of actually doing #2, I would suggest that forcing an  
> updateFromElement and then invalidating the cache is the best way  
> to do it, so we don't have the translation happening in 2 different  
> places.

Nah, I think it's OK to have the translation in two different places  
for now. If this was a QString, we'd be talking two lines of code here:

     xxx.replace("\r\n", '\n');
     xxx.replace('\r', '\n');

Lets not bend over too far backwards for this.

     -- Darin




More information about the webkit-dev mailing list