title: Using XPath contains with querySelectorAll
body: <p>I'm quite familiar with XPath in PHP, and wanted to use it within JavaScript with the end goal of making an extension to help me with something.</p>
  
  <p>I have the following XPath which works and tested in the dev tools on Chrome: </p>
  
  <pre><code>//div[contains(@data-bt,'rank')]
  </code></pre>
  
  <p>However, it doesn't seem to work with <strong>querySelectorAll</strong>. Yet the following does:</p>
  
  <pre><code>document.querySelectorAll("div[data-bt]")
  </code></pre>
  
  <p>I've also noticed that using <code>//</code> on the XPath seems to throw an error saying its not a valid selector.</p>