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, 20 Jan 2015 14:34:24 +0100
Message-ID: <CADnb78hcMNPi1hWnFFjdpSH+0=qurkkND1q6gzLWovX+irPAGg@mail.gmail.com>
To: Glen Huang <curvedmark@gmail.com>
Cc: WebApps WG <public-webapps@w3.org>
On Tue, Jan 20, 2015 at 2:22 PM, Glen Huang <curvedmark@gmail.com> wrote:
> jQuery doesn’t support that out of performance and code size reasons:
> http://bugs.jquery.com/ticket/14380
> https://github.com/jquery/jquery/pull/1276#issuecomment-24526014
> Both reasons shouldn’t be a problem with the native DOM.

They are. I also realized that if we did this we would have to make
before(), after(), and replaceWith() identical when passed the context
object. Not allowing the context object and requiring usage of the
correct method seems simpler.

Received on Tuesday, 20 January 2015 13:34:47 UTC

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