[Webkit-unassigned] [Bug 62092] setting innerText to an empty string on editable div loses focus

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 29 15:46:44 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62092





--- Comment #43 from Ryosuke Niwa <rniwa at webkit.org>  2011-08-29 15:46:44 PST ---
(In reply to comment #41)
> >> 
> Note that when content is inserted at a boundary-point, it is ambiguous as to where the boundary-point should be repositioned if its relative position is to be maintained. There are two possibilities: at the start or at the end of the newly inserted content. We have chosen that in this case neither the container nor offset of the boundary-point is changed. As a result, the boundary-point will be positioned at the start of the newly inserted content.
> >>
> 
> I understood this as: If we insert at the beginning of the selection, selection will expand to include the inserted content, but if we insert at the end boundary point, since offset is not supposed to change, new selection will NOT include the inserted content. The difference seems a little strange...

I believe your understanding is correct.  You may be interested in looking at http://html5.org/specs/dom-range.html#range-behavior-under-document-mutation as well.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list