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: Tue, 27 Jan 2015 13:51:06 +0100
Message-ID: <CADnb78gZJ5yupAk_9idwOa80D=dTe-EMUp_3-CW6EWDwvM9KmQ@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Glen Huang <curvedmark@gmail.com>, Webapps WG <public-webapps@w3.org>
On Thu, Jan 22, 2015 at 11:43 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> In general I agree that it feels unintuitive that you can't replace a node
> with a collection which includes the node itself. So the extra line or two
> of code seems worth it.

You don't think it's weird that before/after/replaceWith all end up
doing the same for that scenario? Perhaps it's okay...

Received on Tuesday, 27 January 2015 12:51:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:43 UTC