title: failed to execute appendchild on node
body: <p>i'm trying create a new tr in my table </p>
  
  <p>js:</p>
  
  <pre><code>function addElement() {
  
      var message = document.getElementById('inputsend');
      var now = new Date();
  
      var table = document.getElementById('messagebox');
  
      var tr = document.createElement('tr');
  
      var tdTime = document.createElement('td');
      tdTime.innerHTML = now.getHours() +":"+now.getMinutes() + " ";
  
      var tdName = document.createElement('td');
      tdName = userName + " ";
  
      var tdMessage = document.createElement('td');
      tdMessage = message;
  
      tr.appendChild(tdTime);
      tr.appendChild(tdName);
      tr.appendChild(tdMessage);
  
      table.appendChild(tr);
  
      document.getElementById('inputsend').value = "";
  
  }
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>&lt;table id="messagebox"&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>but its dont work and chrome say failed to execute appendchild on node</p>