I've been baffled by this, dom ID names are defined as dom objects in js by default. I was going mad because of a variable I thought I defined but I actually did not, and it was returning an object because of same ID name.
I was not able to get any documentation about this. All browsers seems to be doing that. Is there any reason for this?