why window[id] === document.getElementById( id )
<p>I've noticed in several browsers, dom elements can be accessed simply by their id like this:</p>

<p><strong>HTML</strong></p>

<pre><code>&lt;div id="chocolat"&gt;&lt;/div&gt;
</code></pre>

<p><strong>JS</strong></p>

<pre><code>alert(chocolat.id); //alerts "chocolat
chocolat; //points to the node
window.chocolat; //idem
chocolat === document.getElementById('chocolat'); // true
</code></pre>

<p>( test here: <a href="http://jsfiddle.net/GUUPT/" rel="nofollow">http://jsfiddle.net/GUUPT/</a> )
This will work on some versions of IE, on Chrome, but it won't on Firefox(5).</p>

<p>I'm curious where does this come from ? is it in the standards?</p>
