W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2010

Re: Resending: DOMCharacterDataModified:prevValue?

From: Ojan Vafai <ojan@chromium.org>
Date: Tue, 13 Jul 2010 08:34:42 -0700
Message-ID: <AANLkTilg1hQ45MGyRFYsKmxlVzuJ8nBZwHTkhEAnQweH@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Travis Leithead <travil@microsoft.com>, "www-dom@w3.org" <www-dom@w3.org>, Doug Schepers <schepers@w3.org>, "Olli@pettay.fi" <Olli@pettay.fi>
FWIW, WebKit has avoided adding DOMAttrModified for this reason.
https://bugs.webkit.org/show_bug.cgi?id=8191

A replacement would be great. MutationEvents are awful. Jonas, my memory is
that your suggestion for a replacement was relatively well-received, no? Is
there a final draft of that somewhere?

On Thu, Jul 1, 2010 at 3:36 PM, Jonas Sicking <jonas@sicking.cc> wrote:

> Personally I would recommend that you don't implement
> DOMCharacterDataModified. The mutation events are very hard to get
> right in all edge cases. We'd be much better off coming up with a
> replacement than having all browser implementations chasing down edge
> cases forever.
>
> / Jonas
>
> On Thu, Jul 1, 2010 at 3:19 PM, Travis Leithead <travil@microsoft.com>
> wrote:
> > DOMCharacterDataModified event—should it provide a “prevValue” and
> > “newValue”? The definition of the event [1] seems to indicate “no” (which
> is
> > what other browsers have implemented), but the definition of [2]
> “prevValue”
> > and “newValue” seem to contradict that.
> >
> >
> >
> > The third IE9 platform preview [3] is currently supporting supplying the
> > prevValue/newValue, but at a large performance cost. I’d like to see this
> > apparent contradiction resolved one way or the other. Thanks!
> >
> >
> >
> > -Travis
> >
> >
> >
> > [1]
> >
> http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#event-type-DOMCharacterDataModified
> >
> > [2]
> >
> http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-Events-MutationEvent-prevValue
> >
> > [3] http://ie.microsoft.com/testdrive/Default.html
> >
> >
>
>
Received on Tuesday, 13 July 2010 15:35:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:04 GMT