microformat-shiv.js
function( node ) {
			var out = '',
				j = 0;

			if(node.tagName && this.excludeTags.indexOf( node.tagName.toLowerCase() ) > -1){
				return out;
			}

			// if node is a text node get its text
			if(node.nodeType && node.nodeType === 3){
				out += modules.domUtils.getElementText( node );
			}

			// get the text of the child nodes
			if(node.childNodes && node.childNodes.length > 0){
				for (j = 0; j < node.childNodes.length; j++) {
					var text = this.walkTreeForText( node.childNodes[j] );
					if(text !== undefined){
						out += text;
					}
				}
			}

			// if it's a block level tag add an additional space at the end
			if(node.tagName && this.blockLevelTags.indexOf( node.tagName.toLowerCase() ) !== -1){
				out += ' ';
			}

			return (out === '')? undefined : out ;
		}
function( node ) {
			var out = '',
				j = 0;

			if(node.tagName && this.excludeTags.indexOf( node.tagName.toLowerCase() ) > -1){
				return out;
			}

			// if node is a text node get its text
			if(node.nodeType && node.nodeType === 3){
				out += modules.domUtils.getElementText( node );
			}

			// get the text of the child nodes
			if(node.childNodes && node.childNodes.length > 0){
				for (j = 0; j < node.childNodes.length; j++) {
					var text = this.walkTreeForText( node.childNodes[j] );
					if(text !== undefined){
						out += text;
					}
				}
			}

			// if it's a block level tag add an additional space at the end
			if(node.tagName && this.blockLevelTags.indexOf( node.tagName.toLowerCase() ) !== -1){
				out += ' ';
			}

			return (out === '')? undefined : out ;
		}
function ( node ) { var out = '' , j = 0 ; if ( node . tagName && this . excludeTags . indexOf ( node . tagName . toLowerCase ( ) ) > - 1 ) { return out ; } // if node is a text node get its text if ( node . nodeType && node . nodeType === 3 ) { out += modules . domUtils . getElementText ( node ) ; } // get the text of the child nodes if ( node . childNodes && node . childNodes . length > 0 ) { for ( j = 0 ; j < node . childNodes . length ; j ++ ) { var text = this . walkTreeForText ( node . childNodes [ j ] ) ; if ( text !== undefined ) { out += text ; } } } // if it's a block level tag add an additional space at the end if ( node . tagName && this . blockLevelTags . indexOf ( node . tagName . toLowerCase ( ) ) !== - 1 ) { out += ' ' ; } return ( out === '' ) ? undefined : out ; }
walks DOM tree parsing the text from DOM Nodes

@param  {DOM Node} node
@return {String}
walks DOM tree parsing the text from DOM Nodes