re: DOM elements with ID's are global variables VIEW POST

FULL DISCUSSION
 

Yes, that's actually a very old behaviour. As old as Internet Explorer... 5, maybe?
It's been kept just for compatibility reasons. Just don't ever, ever rely on that, because it's really bad :(

code of conduct - report abuse