title: Chrome "onclick" event issue
body: <p>Okay so I am building an application (for Chrome (*not extension)) and have a bunch of repeated elements on the page. So I decided to build these elements dynamically using a loop, like so:</p>
  
  <pre><code>for(var i = 1; i &lt;= 64; i++){
      var elem = document.createElement('div');
      elem.id = "element"+i;  
      elem.onclick = "doSomething()"
      $("parentElement").appendChild(elem);
  }
  </code></pre>
  
  <p>My issue occurs when it tries to attach my function to the onclick event. When I look at the element there is no onclick attribute on it... Even when I step through I can get to the line:</p>
  
  <pre><code>elem.onclick = "doSomething()"
  </code></pre>
  
  <p>Then I step again and nothing... So far I have tried with and without quotes and both .onclick and .onClick...</p>
  
  <p>Thank you in advance!</p>