DEV Community

loading...

Discussion on: DOM elements with ID's are global variables

Collapse
maxart2501 profile image
Massimo Artizzu

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 :(