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 11:41:53 +0100
Message-ID: <CADnb78j_65TnCF3_uM58X3jDHTJAxN5eoDZG8X3-dy3bc+ptVg@mail.gmail.com>
To: "James M. Greene" <james.m.greene@gmail.com>
Cc: whatwg <whatwg@whatwg.org>, Glen Huang <curvedmark@gmail.com>
On Sat, Jan 10, 2015 at 2:14 PM, James M. Greene
<james.m.greene@gmail.com> wrote:
> jQuery is famous (and sometimes infamous, depending on who you talk to) for
> its API brevity and yet we still chose longer names for these scenarios:
> `replaceWith` and `replaceAll` (even including "All" in the latter to
> clarify that it operates on the entire context set, not just the first
> element).
> Dojo uses the same method names as well for their NodeList
> implementation: `replaceWith` and `replaceAll`.

Thanks, that's compelling. Is it a problem for anyone if we rename
replace to replaceWith?

Received on Monday, 12 January 2015 10:43:38 UTC

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