Permalink
Browse files

Fix XPathSelectNode fix test on element.selectNode

  • Loading branch information...
1 parent 9e0df5b commit fa11c6a41c7d87a60c695f5448e7279bc1d8b32d @cdujeu cdujeu committed Jul 4, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/plugins/gui.ajax/res/js/es6/util/XMLUtils.es6
@@ -37,7 +37,7 @@ class XMLUtils{
* @signature function(element, query)
*/
static XPathSelectSingleNode(element, query){
- if(element.selectSingleNode){
+ if(typeof element.selectSingleNode === "function"){
try{
var res = element.selectSingleNode(query);
if(res) return res;
@@ -76,7 +76,7 @@ class XMLUtils{
* @signature function(element, query)
*/
static XPathSelectNodes(element, query){
- if(element.selectNodes){
+ if(typeof element.selectNodes === "function"){
try{
try{
if(element.ownerDocument && element.ownerDocument.setProperty){

0 comments on commit fa11c6a

Please sign in to comment.