W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: oldNode.replaceWith(...collection) edge case

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 16 Jan 2015 09:22:23 +0100
Message-ID: <CADnb78iLhUjBWYR2j4yuRof160tDovjs3BKNwJWVVGWNpj5pYA@mail.gmail.com>
To: Glen Huang <curvedmark@gmail.com>
Cc: WebApps WG <public-webapps@w3.org>
On Fri, Jan 16, 2015 at 8:47 AM, Glen Huang <curvedmark@gmail.com> wrote:
> Another way to do this is that in mutation method macro, prevent `oldNode` from being added to the doc frag, and after that, insert the doc frag before `oldNode`, finally remove `oldNode`. No recursive finding of next sibling is needed this way.

But then d2 would no longer be present?

I don't really see a good reason to complicate the algorithm for this
scenario, personally.


-- 
https://annevankesteren.nl/
Received on Friday, 16 January 2015 08:22:47 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:25 UTC