- From: Glen Huang <curvedmark@gmail.com>
- Date: Mon, 12 Jan 2015 19:03:49 +0800
- To: Anne van Kesteren <annevk@annevk.nl>
- Cc: whatwg <whatwg@whatwg.org>
Or, the current algorithm of replace could be reversed, which should eliminate such confusion. > On Jan 12, 2015, at 6:41 PM, Anne van Kesteren <annevk@annevk.nl> wrote: > > 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? > > > -- > https://annevankesteren.nl/
Received on Monday, 12 January 2015 11:04:36 UTC