W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] UndoManager: restoring selection after undoing deletion

From: Aryeh Gregor <ayg@aryeh.name>
Date: Wed, 26 Oct 2011 13:59:15 -0400
Message-ID: <CAKA+Ax=vETY7d9C+5COnYFc11cbf-O_BwgOTzD89iun62ZOm5w@mail.gmail.com>
On Thu, Oct 20, 2011 at 3:16 AM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> However, there's no easy way for the user agent to figure out whether a
> given transaction wants to select some contents on undo or not.?In fact, we
> don't even know whether we want to restore selection at all. If an automatic
> transaction was modifying non-text nodes (e.g. SVG line elements), then
> restoring selection isn't desirable at all.

I think I'm missing something: why isn't it desirable?
Received on Wednesday, 26 October 2011 10:59:15 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC