title: how to get all parent nodes of given element in pure javascript?
body: <p>I mean an array of them. That is a chain from top HTML to destination element including the element itself.</p>
  
  <p>for example for element <code>&lt;A&gt;</code> it would be:</p>
  
  <pre><code>[HTML, BODY, DIV, DIV, P, SPAN, A]
  </code></pre>