Selection offset does not update when DOMCharacterDataModified fires

The problem is, both range.startOffset and range.endOffset have  
previously selected offset, while range.startContainer and  
range.endContainer already changed.

Furthermore, Firefox and WebKit behave differently. For instance, in  
Firefox selection is never collapsed.

In my opinion, range.startOffset and range.endOffset must always match  
their containers.

I didn't find here http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMCharacterDataModified 
  any definition what browsers should actually do.

Received on Wednesday, 30 June 2010 09:34:43 UTC