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

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

From: delfin <delfin@segonquart.net>
Date: Mon, 12 Jan 2015 12:18:32 +0100
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Message-ID: <0965ce6939b3f54a9119ffa7fc8518b6@correoweb.segonquart.net>
Cc: whatwg@whatwg.org, Glen Huang <curvedmark@gmail.com>
 

On 2015-01-11 03:58, Bjoern Hoehrmann wrote: 

> * Glen Huang wrote:
> 
>> When someone says A replace B, I get the impression that B is no longer in effect and A is the new one. So when I do `node1.replace(node2)`, I can't help but feel node2 is replaced with node1, which is the opposite of what the spec specifies.
> 
> To illustrate this, imagine some team sports game where the coach jells
> "Jane, replace John!", in other words, `Jane.replace(John)`. It is clear
> that Jane is instructed to take the position of John.
> 
> I could not be able to use a better example to show A replaces B. Excellent.
> 
> ---
> 
> Delfi Ramirez
> 
> My digital signature [1]
> 
> +34 633 589231
> delfin@segonquart.net [2] 
> 
> twitter: delfinramirez
> 
> IRC: segonquart Skype: segonquart [3]
> 
> http://segonquart.net [4]
> 
> http://delfiramirez.info [5]
 

Links:
------
[1] http://delfiramirez.info/public/dr_public_key.asc
[2] mail:%20delfin@segonquart.net
[3] skype:segonquart
[4] http://segonquart.net
[5] http://delfiramirez.info
Received on Monday, 12 January 2015 12:03:49 UTC

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