Element accessible with ID
<p>I saw a strange behavior.
I created a <code>Input</code>.</p>

<pre><code>&lt;input id='inputid' value='value'/&gt;​
</code></pre>

<p>and tried to access it directly from id. Instead of throwing an exception console was showing above input element.</p>

<pre><code>console.log(inputid);
</code></pre>

<p>After that I tried to compare it with <code>getElementById</code></p>

<pre><code>console.log( inputid == document.getElementById('inputid'));
</code></pre>

<p>console was showing <code>true</code>.</p>

<p>You can see this behavior on <a href="http://jsfiddle.net/XwWcS/">jsfiddle</a>.</p>

<p>Is it a strange behavior or  am I missing something?</p>

<p>I tested it in <code>Chrome  23.0.1271.10 dev-m</code> and <code>firefox 15.0.1</code>.</p>
