W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2012

Re: [DOM4] Mutation algorithm imposed order on document children

From: Ojan Vafai <ojan@chromium.org>
Date: Fri, 15 Jun 2012 08:02:51 -0700
Message-ID: <CANMdWTstjArAfge4BUGCoG=EULn6tQu1GfYvF4UT_-dm+K6KFw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Anne van Kesteren <annevk@annevk.nl>, Elliott Sprehn <esprehn@gmail.com>, Ryosuke Niwa <rniwa@webkit.org>, www-dom <www-dom@w3.org>
On Thu, Jun 14, 2012 at 9:42 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 6/14/12 11:43 PM, Ojan Vafai wrote:
>> This is the only case I know of in the DOM apis where we enforce
>> ordering. So, right now, WebKit just has a canAcceptChild method that
>> takes a pointer to the new child. It doesn't need to know where that
>> child is going.
> Unless we're talking about replaceChild, right?  In which case you do need
> to care what's being replaced (and in fact you have code in
> Document::checkReplaceChild which very much cares, at first glance).

I'm OK leaving the spec as is and changing WebKit if you feel strongly
about this. It just seemed like a silly requirement to add extra code for.

>  Does that answer your question?
> Yep.
> -Boris
Received on Friday, 15 June 2012 15:03:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:00 UTC