title: Uncaught TypeError: Cannot read property 'parentNode' of null javascript
body: <p>This code should make an element disappear from a list when it is dropped on another element (called cookiemonster)</p>
  
  <pre class="lang-js prettyprint-override"><code>addEvent(cookiemonster, 'drop', function (e) {
    if (e.stopPropagation) e.stopPropagation();
  
    var el = document.getElementById(e.dataTransfer.getData('text'));
    el.parentNode.removeChild(el);
    return false;
  });
  </code></pre>