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

[whatwg] Automatic transaction should support changing the value of input/textarea

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 8 Nov 2011 01:48:48 -0800
Message-ID: <CA+c2ei8ezq7_W0MH3xRQEWfEwPjPokQcLuCx1N1rWaw5==cNEQ@mail.gmail.com>
On Mon, Nov 7, 2011 at 9:13 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> Hi,
> It appears that automatic transaction should treat changing the value of
> input and textarea as a "DOM change" because I can definitely see use cases
> for scripts to modify the values of input/textarea in automatic transactions
> and expect it be restored upon unapply/reapply.
> Unfortunately, the current proposal doesn't support this because
> input/textarea's value is only reflected in the shadow DOM in some UA
> implementations and IDL attribute. Should we special case the value IDL
> attribute of HTMLInputElement and HTMLTextAreaElement in UndoManager spec?

Yup, that seems like the right solution. But we should specify exactly
what the UA should store. I.e. should it store the whole before/after
values? What should it do if the after-value doesn't match the current
value when the transaction is reverted?

/ Jonas
Received on Tuesday, 8 November 2011 01:48:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:09 UTC