title: XPath expression exception
body: <p>I am not really sure if i am doing this right with XPath expression. I am trying to locate a  text on DOM and this text is assingned to a variable. I have text stored in SQLite and i have retrievd the text and i am trying to locate it on the webpage which actually contains the text. so i ahve the following code:</p>
  
  <pre><code>var searchText = dataset[x]['selectedText'];
          alert(dataset[x]['selectedText']);
          var res = googbar_frames[0].contentDocument.evaluate("//*[.=searchText]",googbar_frames[0].contentDocument.body,null,XPathResult.ANY_TYPE,null);
          alert(res.snapshotLength);
  </code></pre>
  
  <p>And i get the following error.</p>
  
  <pre><code>Error: Permission denied for &lt;http://en.wikipedia.org&gt; to call method XPathException.toString on &lt;&gt;.
  Error: Permission denied for &lt;http://en.wikipedia.org&gt; to call method XPathException.toString on &lt;&gt;.
  </code></pre>
  
  <p>Have got the expression correct. I am trying to look for the text on DOM. Or am i going wrong somwehere?
  cheers</p>