title: How to check if DOM textnode is a link
body: <p>What's the best way of checking if a DOM textnode is a link? This following code checks if the node is immediately wrapped in an anchor tag, but wouldn't work if the  tag is further up the tree...</p>
  
  <pre><code>if (myTextnode.parentNode.tagName !== 'A') {
      //do something
  }
  </code></pre>