title: Using querySelector with IDs that are numbers
body: <p>From what I understand the HTML5 spec lets you use IDs that are numbers like this.</p>
  
  <pre><code>&lt;div id="1"&gt;&lt;/div&gt;
  &lt;div id="2"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I can access these fine using <code>getElementById</code> but not with <code>querySelector</code>.  If I try do the following I get <strong>SyntaxError: DOM Exception 12</strong> in the console.</p>
  
  <pre><code>document.querySelector("#1")
  </code></pre>
  
  <p>I'm just curious why using numbers as IDs does not work <code>querySelector</code> when the HTML5 spec says these are valid.  I tried multiple browsers.</p>