title: .parents() without jquery - or querySelectorAll for parents
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12977658/check-event-target-parentelement-with-matchesselector-js">Check event.target.parentElement with matchesSelector js</a>  </p>
  </blockquote>
  
  
  
  <p>I have a dom object, I'd like to match its parents, all parents, against a selector, like <code>querySelectAll()</code>, but for parents instead of children. Similar to jQuery's <code>.parents('selector')</code> method, but I do NOT need any back-wards compatibility. Also, no libraries please. I will totes take a boolean return value.</p>
  
  <p>I CAN write this myself as a recursive function/for/while using <code>matchesSelector()</code>. I'm looking for little-known methods or more efficient code.</p>
  
  <p>Saving any processing is worth it. Think tens of thousands of match checks, or more even.</p>