lib/client.js
function(propNode) {
        var content = null;
        if (propNode.childNodes && propNode.childNodes.length > 0) {
            var subNodes = [];
            // filter out text nodes
            for (var j = 0; j < propNode.childNodes.length; j++) {
                var node = propNode.childNodes[j];
                if (node.nodeType === 1) {
                    subNodes.push(node);
                }
            }
            if (subNodes.length) {
                content = subNodes;
            }
        }

        return content || propNode.textContent || propNode.text || '';
    }
function(propNode) {
        var content = null;
        if (propNode.childNodes && propNode.childNodes.length > 0) {
            var subNodes = [];
            // filter out text nodes
            for (var j = 0; j < propNode.childNodes.length; j++) {
                var node = propNode.childNodes[j];
                if (node.nodeType === 1) {
                    subNodes.push(node);
                }
            }
            if (subNodes.length) {
                content = subNodes;
            }
        }

        return content || propNode.textContent || propNode.text || '';
    }
function ( propNode ) { var content = null ; if ( propNode . childNodes && propNode . childNodes . length > 0 ) { var subNodes = [ ] ; // filter out text nodes for ( var j = 0 ; j < propNode . childNodes . length ; j ++ ) { var node = propNode . childNodes [ j ] ; if ( node . nodeType === 1 ) { subNodes . push ( node ) ; } } if ( subNodes . length ) { content = subNodes ; } } return content || propNode . textContent || propNode . text || '' ; }
Parses a property node.

Either returns a string if the node only contains text, or returns an
array of non-text subnodes.

@param {Object} propNode node to parse
@return {string|Array} text content as string or array of subnodes, excluding text nodes
Parses a property node .