Evertjan.
9/10/2015 7:05:00 PM
Sam Desborough <sam.desborough@gmail.com> wrote on 10 Sep 2015 in
comp.lang.javascript:
> On Thursday, September 10, 2015 at 3:50:56 PM UTC+1, WALID BELRHALMIA
> wrote:
>> i have a question when we do var e= document.getElemtById("foo") i get
> the object>Node>element that it hase id="foo" . But when i do
> e===document.getElemtById("foo") i get true it's the same object it
> return always the some object can someone explain me how that work
>
> It's the same as saying 1 === 1.
That might be true in a steady state.
However, things could have changed between the assignment of e
and the subsequent comparison in a way that the id has moved
[was signed] to another node.
> saying 1 === 1
That English has "one and another one" goes without saying.
Ah well, let's stipulate you are right, Sam.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)