W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2010

Selection offset does not update when DOMCharacterDataModified fires

From: Nikita Vasilyev <me@elv1s.ru>
Date: Tue, 29 Jun 2010 14:34:45 +0400
Message-Id: <68E583E2-02AB-4D30-96F3-C242340948D7@elv1s.ru>
To: www-dom@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:04 GMT