Update davclient.js

This commit is contained in:
Vincent Petry 2015-11-18 15:24:39 +01:00 committed by Lukas Reschke
parent a1d0682ef8
commit e8661a6b56
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ dav.Client.prototype = {
var propNode = propIterator.iterateNext();
while(propNode) {
var content = propNode.textContent;
if (!content && propNode.hasChildNodes()) {
if (propNode.childNodes && propNode.childNodes.length > 0 && propNode.childNodes[0].nodeType === 1) {
content = propNode.childNodes;
}