Re: Mutation events replacement

On Wed, Jul 6, 2011 at 7:43 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 7/6/11 10:23 AM, John J. Barton wrote:
>
>> This is another advantage of onModelChanging or 'before' events. All of
>> the previous values are available for listeners and the task of
>> selecting which ones to process is left to the listener.
>>
>
> Yes, I realize this is useful.  This is why Gecko internally has an
> AttributeWillChange notification....
>
> Again, the problem is preventing malicious onModelChanging listeners from
> screwing everyone else over.
>

I think Boris and I are on the same page here.  Adding 'before' events
defeats the whole purpose.  If we can safely implement 'before' events, then
there's a little need to replace DOM mutation events in the first place.

- Ryosuke

Received on Wednesday, 6 July 2011 15:56:09 UTC