[whatwg] Automatic transaction should support changing the value of input/textarea
Ryosuke Niwa
rniwa at webkit.org
Sun Nov 27 22:22:22 PST 2011
On Sun, Nov 27, 2011 at 10:13 PM, Jonas Sicking <jonas at sicking.cc> wrote:
> Another option is to say that if the textarea value is any other value
> than the "after" value when a automatic transaction is undone, it
> doesn't do anything.
Yeah, I've thought about this as well. However, the UA has to store the
original data anyway because we can have scenarios like:
1. input.value is set to "foo"
2. Script runs input.value = "hi" inside an automatic transaction
3. Another script modifies it to "foo bar"
4. Yet another script modifies it to "hi"
At this point, input.value is "hi" and matches the "after" value in step 2.
However, natively undoing the transaction won't get us anywhere.
Or did I misunderstand something?
- Ryosuke
More information about the whatwg
mailing list