/src/main/java/org/htmlunit/html/xpath/XPathHelper.java
if ( xpathExpr == null) {
if ( resolver == null ) {
xpathExpressionContext = ((Document) contextNode).getDocumentElement(); } else { xpathExpressionContext = contextNode; } PrefixResolver resolver = prefixResolver; <extra_id_0> resolver = new HtmlUnitPrefixResolver(xpathExpressionContext); } final boolean caseSensitive = contextNode.getPage().hasCaseSensitiveTagNames(); final XPathAdapter xpath = new XPathAdapter(str, resolver, null, caseSensitive); final int ctxtNode = xpathSupport.getDTMHandleFromNode(contextNode); return xpath.execute(xpathSupport, ctxtNode, prefixResolver);