title: Build the querySelector string value of any given node in the DOM
body: <p>I am trying to find a way to build the querySelector string of any given node.  In other words - pick any node on a page - is it possible to walk up the DOM and build a string that would allow me to pass the generated string to document.querySelector and get back the node I chose?  </p>
  
  <p>From what I can tell querySelector has a bug where you can only use nth-child once in the string.</p>
  
  <p>I have tried several times but so far have failed to find a solution. I want to do this in native JavaScript, not jQuery.Any suggestions?</p>