title: Javascript 'Node' undefined in IE8 and under
body: <p>I have the following code which seems to work fine in all browsers except IE8 and below.</p>
  
  <pre><code>$("table.availability").each( function() {
      var siteName = $(this).parent().siblings("h2").contents().filter(function() { return this.nodeType == Node.TEXT_NODE; }).text()
      alert(sitename);
  });
  </code></pre>
  
  <p>It gets the content of an element and strips out everything contained within a child element just leaving the text of that element.</p>
  
  <p>The error I get says that <code>Node</code> is undefined - so I declare it at the top of the js file and then get the same message about <code>TEXT_NODE</code> so I declare that. I then get the following error:</p>
  
  <p><code>Unable to get property 'TEXT_NODE' of undefined or null reference</code></p>
  
  <p>Can anyone help me to fix this or can anyone think of a better way to get the same result. Thanks.</p>