title: DOM - Uncaught Error: NOT_FOUND_ERR: DOM Exception 8 with RemoveChild
body: <p>I need to remove a child added with PHP. When I try to use removeChild, Chrome throws this:</p>
  
  <pre><code>Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
  </code></pre>
  
  <p>Here is the code I am using to delete the element:</p>
  
  <pre><code>&lt;!-- language: lang-js --&gt;
  document.getElementsByTagName('table')[0].removeChild(document.getElementById("e"+eid));
  </code></pre>
  
  <p>And here is the code that defines the element:</p>
  
  <pre><code>&lt;!-- language: lang-html --&gt;
  &lt;tr id='e0'&gt;
     &lt;td&gt;
        gs
     &lt;/td&gt;
     &lt;td&gt;
       &lt;a href='#' onclick='showpm(0); return false;'&gt;
         Open
       &lt;/a&gt;
     &lt;/td&gt;
     &lt;td&gt;
       &lt;a href='#' onclick='delpm(7, 0); return false;'&gt;
         Delete
       &lt;/a&gt;
     &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>