Why does the following javascript throw a TypeError?
<p>Executing</p>

<pre><code>var q = document.querySelector;
q("div");
</code></pre>

<p>throws a <code>TypeError: Illegal Invocation</code> exception. Why is that?</p>
