Patch for davclient.js for Firefox

This commit is contained in:
Vincent Petry 2015-11-19 15:22:52 +01:00 committed by Lukas Reschke
parent ce897f80e6
commit fd40b06639

View file

@ -169,7 +169,7 @@ dav.Client.prototype = {
}
}.bind(this);
var responseIterator = doc.evaluate('/d:multistatus/d:response', doc, resolver);
var responseIterator = doc.evaluate('/d:multistatus/d:response', doc, resolver, XPathResult.ANY_TYPE, null);
var result = [];
var responseNode = responseIterator.iterateNext();
@ -181,19 +181,19 @@ dav.Client.prototype = {
propStat : []
};
response.href = doc.evaluate('string(d:href)', responseNode, resolver).stringValue;
response.href = doc.evaluate('string(d:href)', responseNode, resolver, XPathResult.ANY_TYPE, null).stringValue;
var propStatIterator = doc.evaluate('d:propstat', responseNode, resolver);
var propStatIterator = doc.evaluate('d:propstat', responseNode, resolver, XPathResult.ANY_TYPE, null);
var propStatNode = propStatIterator.iterateNext();
while(propStatNode) {
var propStat = {
status : doc.evaluate('string(d:status)', propStatNode, resolver).stringValue,
status : doc.evaluate('string(d:status)', propStatNode, resolver, XPathResult.ANY_TYPE, null).stringValue,
properties : [],
};
var propIterator = doc.evaluate('d:prop/*', propStatNode, resolver);
var propIterator = doc.evaluate('d:prop/*', propStatNode, resolver, XPathResult.ANY_TYPE, null);
var propNode = propIterator.iterateNext();
while(propNode) {