from what i remember, and according to this article, IE turned elements with an ID attrib into global variables under the name of the id. Everyone complained about this and said it was a bad idea.
was i hibernating when the real browsers started doing this as well?
for example, press f11 right now, click console, and paste "notifications_menu". you should see something like this:
i don't like typing "getElementById", but i don't like surprise globals either. I would think adding new names to window could break a lot of "xxx in window?"-style object sniffs.Code:<div class="vbmenu_popup" id="notifications_menu" style="display:none">
Has anyone had anything break because of this, or is it somehow not a terrible idea anymore?