Quantcast

[HtmlUnit] SVN: [14359] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript/host/dom/XPathNSResolver.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [14359] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript/host/dom/XPathNSResolver.java

asashour-2
Revision: 14359
          http://sourceforge.net/p/htmlunit/code/14359
Author:   asashour
Date:     2017-05-04 17:01:22 +0000 (Thu, 04 May 2017)
Log Message:
-----------
trivial

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/XPathNSResolver.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/XPathNSResolver.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/XPathNSResolver.java 2017-05-04 16:25:52 UTC (rev 14358)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/XPathNSResolver.java 2017-05-04 17:01:22 UTC (rev 14359)
@@ -36,7 +36,7 @@
 @JsxClass(isJSObject = false, value = CHROME)
 public class XPathNSResolver extends SimpleScriptable implements PrefixResolver {
 
-    private Object element_;
+    private Node element_;
 
     /**
      * Default constructor.
@@ -61,7 +61,7 @@
      */
     @JsxFunction
     public String lookupNamespaceURI(final String prefix) {
-        return XmlUtil.lookupNamespaceURI((DomElement) ((SimpleScriptable) element_).getDomNodeOrDie(), prefix);
+        return XmlUtil.lookupNamespaceURI((DomElement) element_.getDomNodeOrDie(), prefix);
     }
 
     /**
@@ -69,7 +69,7 @@
      */
     @Override
     public String getBaseIdentifier() {
-        return XmlUtil.lookupNamespaceURI((DomElement) ((SimpleScriptable) element_).getDomNodeOrDie(), "");
+        return XmlUtil.lookupNamespaceURI((DomElement) element_.getDomNodeOrDie(), "");
     }
 
     /**


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...