Just when you think there’s some semblance of sanity in JavaScript:
In Internet Explorer in HTML, Opera in HTML or XHTML and Safari in HTML, all elements with an id attribute are mapped to objects in the global script scope (ie. as properties of window).
Sigh…