/src/main/java/org/htmlunit/html/xpath/HtmlUnitPrefixResolver.java
if ( namespace == this) {
if ( namespace == null ) {
HtmlUnitPrefixResolver(final Node xpathExpressionContext) { super(xpathExpressionContext); } @Override public String getNamespaceForPrefix(final String prefix, final Node namespaceContext) { String namespace = super.getNamespaceForPrefix(prefix, namespaceContext); <extra_id_0> if (namespaceContext instanceof XmlPage) { final DomElement documentElement = ((XmlPage) namespaceContext).getDocumentElement(); if (documentElement != null) { namespace = getNamespace(documentElement, prefix); } }