title: JavaScript: iterating over document.evaluate() XPathResult returns null
body: <p>I am trying to get all  objects but it doesn't work.</p>
  
  <pre><code>var tmp = document.evaluate("//tr", document, null, XPathResult.ANY_TYPE, null);
  </code></pre>
  
  <p><code>tmp.iterateNext</code> returns me null;</p>