W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2015

Re: [whatwg] Confusion about node1.replace(node2)

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 12 Jan 2015 13:07:17 +0100
Message-ID: <CADnb78i0jJROZm5c-YLSWARyn1aY3xWYBhCT_=ORtj01Qug8pQ@mail.gmail.com>
To: Glen Huang <curvedmark@gmail.com>
Cc: whatwg <whatwg@whatwg.org>
On Mon, Jan 12, 2015 at 12:03 PM, Glen Huang <curvedmark@gmail.com> wrote:
> Or, the current algorithm of replace could be reversed, which should eliminate such confusion.

I think as James said that would leave the confusion. And given the
precedent in libraries, replaceWith() seems good.


-- 
https://annevankesteren.nl/
Received on Monday, 12 January 2015 12:38:22 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:32 UTC