title: SCRIPT5007: Unable to get property 'replace' of undefined or null reference
body: <p>Cant figure out why IE is showing this error message on the line below:</p>
  
  <pre><code>this.innerHTML.replace('#','').trim()
  </code></pre>
  
  <p>I used getElementsByClassName and looped through all  tags and attempting to remove the hashtag from the innerHTML of the link. </p>
  
  <p>Works great in all browsers other than IE. </p>
  
  <p>Any help appreciated. </p>