W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

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

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 5 May 2015 16:15:55 +0200
Message-ID: <CADnb78hAw09MEBVcbLB3WeVy8mdNMpoocxxRf0VKCThNwhJUtA@mail.gmail.com>
To: Glen Huang <curvedmark@gmail.com>
Cc: Simon Pieters <simonp@opera.com>, WebApps WG <public-webapps@w3.org>
On Thu, Jan 22, 2015 at 2:18 AM, Glen Huang <curvedmark@gmail.com> wrote:
> This algorithm shouldn’t slow normal operations down, and I wonder if the spec could use an algorithm like this and not using document fragment.

I looked at this again and we do want to use a DocumentFragment.
Otherwise mutation observers get messy. But I guess we could store
offset parent and next sibling either way. I filed


to tackle this. These algorithms could use some cleaning up in general.

Received on Tuesday, 5 May 2015 14:16:23 UTC

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