title: How to select all script nodes containing a specific string
body: <p>Suppose I have several script nodes in an HTML document, how would I select all of the ones that contain a particular source value:</p>
  
  <pre><code>&lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script type="text/javascript"&gt;
          blah();
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>What's the proper way to select only script nodes <strong>within the body</strong> which contain a function <code>blah</code>?</p>
  
  <h2>Update</h2>
  
  <p><strike>I tried <code>//script[contains(text(), 'blah')]</code>, but it didn't work.</strike></p>