Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix jsDAV issues

  • Loading branch information...
commit 7773a40ced6c8fa3adf5b1ec3c804369d102dcd5 1 parent c0bd7a8
@gjtorikian gjtorikian authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  lib/DAV/plugins/codesearch.js
  2. +1 −1  lib/DAV/util.js
View
3  lib/DAV/plugins/codesearch.js
@@ -162,7 +162,8 @@ var prevFile;
child = dom.childNodes[i];
if (!child || child.nodeType != 1)
continue;
- options[child.tagName] = child.nodeValue;
+ if (child.lastChild !== null)
+ options[child.localName] = child.lastChild.nodeValue;
}
return options;
};
View
2  lib/DAV/util.js
@@ -418,7 +418,7 @@ exports.toClarkNotation = function(dom) {
// Mapping back to the real namespace, in case it was dav
var ns = dom.namespaceURI == "urn:DAV" ? "DAV:" : dom.namespaceURI;
// Mapping to clark notation
- return "{" + ns + "}" + dom.tagName.toLowerCase();
+ return "{" + ns + "}" + dom.tagName.toLowerCase().replace("d:", "");
};
/**
Please sign in to comment.
Something went wrong with that request. Please try again.