title: JavaScript : XPathEvaluator not supported in IE
body: <p>I have the following function in <code>JavaScript</code>, and it fails to run when using <code>Internet Explorer</code>.</p>
  
  <p>This function extract the value from a <code>HTML tag</code>, if a <code>XPath</code> is supplied.</p>
  
  <p>How can i replace this function, and with what ?</p>
  
  <pre><code>function lookupElementByXPath(path) {
      var evaluator = new XPathEvaluator(); 
      var result = evaluator.evaluate(path, document.documentElement, null,XPathResult.FIRST_ORDERED_NODE_TYPE, null); 
      return result.singleNodeValue;
  }
  </code></pre>