[whatwg] DOM Range: redefining behavior under DOM mutation

On Wed, Mar 30, 2011 at 2:48 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> The spec we're looking at is
> <http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-node-insertbefore>
> as of March 26, I assume? ?This spec is all kinds of broken if you allow
> userdata handlers and mutation events.

Oh, whoops.  That's what I forgot about.  Ryosuke Niwa of WebKit says
that for editing commands, DOM mutation events for editing commands
(not sure about things like insertBefore()) get delayed until after
the command finishes executing:

http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-March/030730.html

But I'm not too happy trying to spec anything interesting here when
you have this DOM mutation stuff hanging around, so for now I think
I'll just spec what DOM 2 Range says.  I'll leave a note in the spec
to revisit this later.

> Ah, I misunderstood what the result was. ?Let me look up what Gecko actually
> does here and get back to you.

Thanks.

Received on Wednesday, 30 March 2011 13:23:52 UTC